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?
Mixalisdm Offline
Junior Member

Posts: 9
Threads: 4
Joined: Oct 2013
Reputation: 0
#1
Game crashes when entering a script area?

I need help!
My game crashes every time i enter a specific script area in the map
it's just a black box popping up everytime help!
11-25-2013, 07:27 PM
Find Reply
DamnNoHtml Offline
Senior Member

Posts: 469
Threads: 34
Joined: Sep 2010
Reputation: 16
#2
RE: Game crashes when entering a script area?

Can you paste your .hps code file involving the script?

Creator of Wake, Through the Portal, Insomnia, and Cycles What to do with HPL3....
11-25-2013, 08:10 PM
Find Reply
Mixalisdm Offline
Junior Member

Posts: 9
Threads: 4
Joined: Oct 2013
Reputation: 0
#3
RE: Game crashes when entering a script area?

(11-25-2013, 08:10 PM)DamnNoHtml Wrote: Can you paste your .hps code file involving the script?

AddEntityCollideCallback("Player", "SoundArea", "EventSounds", true, 1);

void EventSounds(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "05_event_door_bang.snt", "Scream", 0, false);
AddTimer("fagit", 1, "fagit");
}
is that what you wanted?
12-06-2013, 07:08 PM
Find Reply
Romulator Offline
Not Tech Support ;-)

Posts: 3,626
Threads: 62
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 Reply




Users browsing this thread: 1 Guest(s)