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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help How to create a sound trigger area?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#6
RE: How to create a sound trigger area?

(01-03-2012, 08:22 AM)Viuffuz Wrote: hmmm.. What am I doing wrong?

void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player", "soundarea", "sound_func", true, 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt_1" , true);
}

void sound_func(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "close_door.snt", "level_wood_1", 0, true);
}
The script seems fine. Is the sound not playing?


01-03-2012, 08:36 AM
Find


Messages In This Thread
How to create a sound trigger area? - by Viuffuz - 01-01-2012, 06:49 PM
RE: How to create a sound trigger area? - by flamez3 - 01-03-2012, 08:36 AM



Users browsing this thread: 1 Guest(s)