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


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help me with scripts
fuytko Offline
Junior Member

Posts: 41
Threads: 6
Joined: Jun 2011
Reputation: 1
#11
RE: Help me with scripts

(08-21-2011, 12:06 AM)JetlinerX Wrote:
void OnStart()
{
AddEntityCollideCallback("Player", "SoundArea_1", "OnCollide", true, 1);
}
void OnCollide(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}
That code will play "react_scare" when the "Player" walks across "SoundArea_1" so long as that area is listed as active in the editor.

Thank you man !!
08-21-2011, 01:02 AM
Find


Messages In This Thread
Help me with scripts - by fuytko - 08-19-2011, 02:07 PM
RE: Help me with scripts - by xtron - 08-19-2011, 02:10 PM
RE: Help me with scripts - by Elven - 08-19-2011, 02:58 PM
RE: Help me with scripts - by JetlinerX - 08-20-2011, 03:47 PM
RE: Help me with scripts - by darkside - 08-20-2011, 03:55 PM
RE: Help me with scripts - by Phoroneus - 08-21-2011, 04:46 AM
RE: Help me with scripts - by JetlinerX - 08-20-2011, 03:57 PM
RE: Help me with scripts - by Khan - 08-20-2011, 06:42 PM
RE: Help me with scripts - by xtron - 08-20-2011, 07:31 PM
RE: Help me with scripts - by fuytko - 08-20-2011, 09:34 PM
RE: Help me with scripts - by JetlinerX - 08-21-2011, 12:06 AM
RE: Help me with scripts - by fuytko - 08-21-2011, 01:02 AM
RE: Help me with scripts - by JetlinerX - 08-21-2011, 01:08 AM
RE: Help me with scripts - by JetlinerX - 08-21-2011, 08:03 AM



Users browsing this thread: 1 Guest(s)