In-Game Script bug (Need help Please) ! - 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: In-Game Script bug (Need help Please) ! (/thread-10368.html) |
In-Game Script bug (Need help Please) ! - HplGeek - 09-17-2011 Hello. I have a problem with my script. Well its not really a problem, Everything works fine, But When i enter my script-area In-Game a hand pops up on the screen. Like a hand pops up like if i was able to grab the script and throw it away. Which makes my story a bit boring, cause your always prepared when a script is about to become active. If you did not understand what i just wrote, please check out the picture i´ve added. Thanks for reading this, Please post a solution if you know whats wrong. Heres my script: //////////////////////////// // Run first time starting map void OnStart() { AddEntityCollideCallback("Player", "lantern", "lanterns", true, 1); (The script starts here)) AddTimer("FadeIn", 21.0, "FadeIn"); AddTimer("tmrIntro", 10.5f, "IntroMessage2"); AddTimer("tmrIntro", 21.0f, "IntroMessage3"); FadeOut(0.0f); SetMessage("Messages", "intro1", 10.0f); } void IntroMessage2(string &in asTimer) { SetMessage("Messages", "intro2", 10.0f); } void IntroMessage3(string &in asTimer) { SetMessage("Messages", "intro3", 10.0f); } void FadeIn(string &in asTimer) { FadeIn(3.0f); } void lanterns(string &in asParent, string &in asChild, int alState) (The Script continues here) { SetMessage("Messages", "lanterns", 7.0f); } (The script ends here) //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } RE: In-Game Script bug (Need help Please) ! - Khyrpa - 09-17-2011 Check if your area type is Script also don't put interact callbacks and uncheck ItemInteraction if you have done those. |