Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Do I trigger a sound file at a specific area?
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#1
How Do I trigger a sound file at a specific area?

So I want it to be like:The player walks into this area,and theres a guy who starts talking.Now how do I do this?
01-09-2012, 07:17 AM
Website Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: How Do I trigger a sound file at a specific area?

Quote:void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Sound", true, 1;
}

void Sound(sting &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
}
Please, head over here: http://wiki.frictionalgames.com/hpl2/amn...ons#player

It will tell you what you how and what you need to do what you want. Research is key.

(This post was last modified: 01-09-2012, 07:23 AM by flamez3.)
01-09-2012, 07:19 AM
Find
BlueFury Offline
Senior Member

Posts: 470
Threads: 30
Joined: May 2011
Reputation: 9
#3
RE: How Do I trigger a sound file at a specific area?

These scripts can be easily made with the wiki.
Please stop making threads

Sticks and stones may break our bones, but words will break our hearts. – Robert Fulghum
01-09-2012, 09:55 AM
Find




Users browsing this thread: 1 Guest(s)