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
Scripting help
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#2
RE: Scripting help

void OnStart
{
AddEntityCollideCallback("Player", "AREA", "FUNC", true, 1);
}

void FUNC(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "enabled.snt, or other sound you want to use", "Entity you want sound at", 3, false);
}
That should do it. In the level editor, you'll want to look at the bottom bar and click the A and P boxes to disable the ambient light.
08-14-2011, 08:50 PM
Find


Messages In This Thread
Scripting help - by Nathannnnr93 - 08-14-2011, 08:32 PM
RE: Scripting help - by Obliviator27 - 08-14-2011, 08:50 PM
RE: Scripting help - by Nathannnnr93 - 08-14-2011, 08:53 PM



Users browsing this thread: 1 Guest(s)