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
Game crashes when entering a script area?
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#4
RE: Game crashes when entering a script area?

Yep! That's the .hps Smile

Your issue is you haven't declared the CollideCallback correctly. Assuming you want it there from the beginning, you need to place it in an OnStart() routine.

This should fix that!
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""SoundArea""EventSounds"true1);
}

void EventSounds(string &in asParentstring &in asChildint alState)
{
PlaySoundAtEntity("""05_event_door_bang.snt""Scream"0false);
AddTimer("fagit"1"fagit");


Discord: Romulator#0001
[Image: 3f6f01a904.png]
12-06-2013, 08:07 PM
Find


Messages In This Thread
RE: Game crashes when entering a script area? - by Romulator - 12-06-2013, 08:07 PM



Users browsing this thread: 1 Guest(s)