![]() |
Game crashes when entering a script area? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Game crashes when entering a script area? (/thread-23944.html) |
Game crashes when entering a script area? - Mixalisdm - 11-25-2013 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! RE: Game crashes when entering a script area? - DamnNoHtml - 11-25-2013 Can you paste your .hps code file involving the script? RE: Game crashes when entering a script area? - Mixalisdm - 12-06-2013 (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? RE: Game crashes when entering a script area? - Romulator - 12-06-2013 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! PHP Code: void OnStart() |