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
Sound Activation
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Sound Activation

PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player", "ScriptArea_1", "MyCollideFunction", true, 1);
}

void MyCollideFunction(string &in asParent, string &in asChild, int alState)
{
    
PlaySoundAtEntity("", "scare_wall_stomp.snt", "Player", 0.0f, false);
} 

PlaySoundAtEntity found here

Trying is the first step to success.
02-15-2017, 11:29 AM
Find


Messages In This Thread
Sound Activation - by XeOnTricks - 02-14-2017, 01:10 AM
RE: Sound Activation - by Mudbill - 02-14-2017, 03:56 AM
RE: Sound Activation - by XeOnTricks - 02-15-2017, 11:21 AM
RE: Sound Activation - by FlawlessHappiness - 02-15-2017, 11:29 AM
RE: Sound Activation - by XeOnTricks - 02-15-2017, 10:13 PM



Users browsing this thread: 1 Guest(s)