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
Scare Sound?
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#21
RE: Scare Sound?

void OnStart()
{
AddEntityCollideCallback("Player", "Name of script area", "SoundTrigger", true, 1);
}


void SoundTrigger(string &in asParent, string &in asChild, int alState)
{
PlayGuiSound("player_cough.snt", 0.7f);

}
(This post was last modified: 07-22-2012, 06:07 PM by Kazakarumariou.)
07-21-2012, 07:23 PM
Find
zergling50 Offline
Member

Posts: 74
Threads: 9
Joined: Jul 2012
Reputation: 1
#22
RE: Scare Sound?

(07-21-2012, 07:23 PM)Harthex Wrote: void OnStart()
{ AddEntityCollideCallback("Player", "Name of script area", "SoundTrigger", true, 1);
}


void SoundTrigger(string &in asParent, string &in asChild, int alState)
{
PlayGuiSound("player_cough.snt", 0.7f);

}
THANKS! It worked! Thanks for all you guys help!
07-22-2012, 05:06 PM
Find




Users browsing this thread: 1 Guest(s)