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?
Viuffuz Offline
Junior Member

Posts: 13
Threads: 4
Joined: Jan 2012
Reputation: 0
#5
RE: How to create a sound trigger area?

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);
}
01-03-2012, 08:22 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 Viuffuz - 01-03-2012, 08:22 AM



Users browsing this thread: 5 Guest(s)