FATAL ERROR, COULD NOT LOAD SCRIPT FILE. - 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: FATAL ERROR, COULD NOT LOAD SCRIPT FILE. (/thread-17401.html) |
FATAL ERROR, COULD NOT LOAD SCRIPT FILE. - Rassagai - 08-01-2012 //////////////////////////// // Run first time starting map void OnStart() { { AddEntityCollideCallback("Player", "Area", "Aparecemonstruo", true, 0); } } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { void Aparecemonstruo(string &in asParent, string &in asChild, int alState) { SetEnemyActivate("enemigo", true); ShowEnemyPlayerPosition("enemigo"); } It's wrong? RE: FATAL ERROR, COULD NOT LOAD SCRIPT FILE. - Adny - 08-01-2012 You had a few extra and misplaced brackets; also, the function isn't SetEnemyActivate, it's SetEntityActive. Here's the revised script: //////////////////////////// // Run first time starting map void OnStart() { AddEntityCollideCallback("Player", "Area", "Aparecemonstruo", true, 0); } void Aparecemonstruo(string &in asParent, string &in asChild, int alState) { SetEntityActive("enemigo", true); ShowEnemyPlayerPosition("enemigo"); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } I hope that helped RE: FATAL ERROR, COULD NOT LOAD SCRIPT FILE. - Rassagai - 08-01-2012 THANKS THANKS THANTS!!!!!!!!!! YOU ARE THE BEST!!!! I LOVE YOU!!! |