Custom Story script error - 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: Custom Story script error (/thread-24940.html) |
Custom Story script error - MaksoPL - 03-28-2014 Hi. I created a awake script and: main 12,1 ERR: Unexpected token '{'. This is my script: void OnStart () { FadeOut(0); FadeIn(3); SetPlayerActive(true); MovePlayerHeadPos(1.5,0,0.5,30,0.); FadePlayerRollTo(60,100,100); AddTimer("",4,"Wake"); } void Wake(string &in asTimer); { MovePlayerHeadPos(1.15,1.3,0.4,7,1); FadePlayerRollTo(0,30,30); } RE: Custom Story script error - DnALANGE - 03-28-2014 here is what you have added ; Wrong : void Wake(string &in asTimer); - GOOD : void Wake(string &in asTimer) The ; must NOT go there. --- AND, PHP Code: MovePlayerHeadPos(1.5,0,0.5,30,0.); The last 0. Make that something like 0.1 0.2 0.3 or something.. --- Here is an example from me : PHP Code: MovePlayerHeadPos(0, -1.5, 0.0f, 1.0f, 0.1f); RE: Custom Story script error - MaksoPL - 03-28-2014 Thanks. Working. |