![]() |
[SCRIPT] hps dosnt work in my map :S - 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: [SCRIPT] hps dosnt work in my map :S (/thread-15382.html) |
hps dosnt work in my map :S - SilentHideButFine - 05-11-2012 Hello , i have an problem , when i start map the intro dosn't start anyone know how to fix this ??? Map name start.hps start.map anyidéa what i have to do ? RE: hps dosnt work in my map :S - Rownbear - 05-11-2012 (05-11-2012, 04:07 PM)SilentHideButFine Wrote: Hello , i have an problem , when i start map the intro dosn't start anyone know how to fix this ???make sure your start.hps isnt actually start.hps.txt you might need to turn off that auto changefile as described on the wikisite, if this isnt the case then what you have scripted probably is something wrong with. RE: hps dosnt work in my map :S - SilentHideButFine - 05-11-2012 (05-11-2012, 04:12 PM)Rownbear Wrote:(05-11-2012, 04:07 PM)SilentHideButFine Wrote: Hello , i have an problem , when i start map the intro dosn't start anyone know how to fix this ???make sure your start.hps isnt actually start.hps.txt Hmm it says it is error in the hps.... void OnStart() { SetPlayerLampOil(10); AddEntityCollideCallback("Player", "Script_Area_1", "Intro", true, 1); } void Intro(string &in asParent, string &in asChild, int alState) { FadeOut(20); SetMessage("Message", "Intro", 2); AddTimer("", 2, "Intro1"); } void Intro1(string &in asTimer) { SetMessage("Message", "Intro1", 2); AddTimer("", 2, "Intro2"); } void Intro2(string &in asTimer) { SetMessage("Message", "Intro2", 2); AddTimer("", 2, "Intro3"); } void Intro3(string &in asTimer) { SetMessage("Message", "Intro3", 2); AddTimer("", 2, "Intro3"); } void Intro4(string &in asTimer) { SetMessage("Message", "Intro4", 5); AddTimer("", 1, "Wakeup"); } void Wakeup(string &in asTimer) { FadeIn(10) AddTimer("", 1, "Wakeup1"); } void Wakeup1(string &in asTimer) { FadeOut(5) AddTimer("", 1, "Wakeup2"); } void Wakeup2(string &in asTimer) { FadeIn(3) } RE: hps dosnt work in my map :S - SilentStriker - 05-11-2012 FadeIn(10) FadeOut(5) FadeIn(3) they are all missing ; RE: hps dosnt work in my map :S - Cranky Old Man - 05-12-2012 Also, the AddTimer for Intro3, is calling itself, not Intro4. ( "AddTimer("", 2, "Intro3");" should be "AddTimer("", 2, "Intro4");". ) RE: hps dosnt work in my map :S - SilentHideButFine - 05-12-2012 (05-12-2012, 01:19 AM)Cranky Old Man Wrote: Also, the AddTimer for Intro3, is calling itself, not Intro4.got it to work now , but how do i disable so the player can't move , dosn't find in the Dev Wiki :S NVM fixed it RE: hps dosnt work in my map :S - SilentStriker - 05-12-2012 SetPlayerActive(bool abActive); |