Check this script!? 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: Check this script!? Please? (/thread-21854.html) |
Check this script!? Please? - jamistara - 06-17-2013 I need help. I have checked this so many times and I don't see anything wrong. void OnEnter() { } void OnStart(){ AddTimer("Timer1", 0.01, "Intro1"); AddUseItemCallback("", "item_secret_mine_door_key_1", "door_1", "UsedKey", true); } void Intro1(string &in asTimer){ SetPlayerCrouching(true); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); FadeOut(0.01); AddTimer("Timer2", 3, "Intro2"); PlayMusic("general_speaker_noise1.ogg", false, 7, 3, 6, false); FadeRadialBlurTo(0.4, 0.02); } void Intro2(string &in asTimer){ FadeIn(5.5); PlaySoundAtEntity("", "react_sigh.snt", "Player", 1, false); AddTimer("Timer3", 3, "Intro3"); } void Intro3(string &in asTimer){ FadePlayerRollTo(0.0f, 33.0f, 33.0f); SetPlayerActive(true); SetPlayerCrouching(false); PlayMusic("Penumbra_BP_A1.ogg", true, 15, 3, 1, true); SetPlayerMoveSpeedMul(0.3); SetPlayerRunSpeedMul(0.6) PlayMusic("Penumbra_BP_A1.ogg", false, 7, 3, 6, false); } void Message(string &in asEntity){ SetMessage("Messages", "Msg1", 3); } void UsedKey(string &in asItem, string &in asEntity){ SetSwingDoorLocked("door_1", false, true); PlaySoundAtEntity("", "unlock_door", "door_1", 0, false); RemoveItem(asItem); FadeRadialBlurTo(0.2, 2.5); SetPlayerMoveSpeedMul(1); SetPlayerRunSpeedMul(1) } RE: Check this script!? Please? - 7heDubz - 06-17-2013 What is the error code your getting e.g. (1,1) ERR: Unexpected "(" RE: Check this script!? Please? - jamistara - 06-17-2013 (06-17-2013, 01:30 PM)WIWWM Wrote: What is the error code your getting Hey, just when you answered, I found it! Still, thank you! RE: Check this script!? Please? - 7heDubz - 06-17-2013 (06-17-2013, 01:45 PM)jamistara Wrote:(06-17-2013, 01:30 PM)WIWWM Wrote: What is the error code your getting Haha, anytime next time you need help make sure to post that code. |