11-25-2013, 07:27 PM
11-25-2013, 08:10 PM
Can you paste your .hps code file involving the script?
12-06-2013, 07:08 PM
(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, 08:07 PM
Yep! That's the .hps
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!
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:
void OnStart()
{
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");
}