beginscript; SetVar(1,0); label GO: if (GetGlobalVar(4) != 3) { EndFrame(); goto GO; } WaitForTime(30); SpawnOtherUnit(GenSpit); WaitForTime(50); PausePlayer(); ChangeCamera(0x80d,20,40); SpawnOtherUnit (Eng_G1); SetVar(4,0); SetVar(6,10); gosub InterWait; //WaitForTime(10); //if (!GetVar(4)) TriggerMessage(12,h12,0x783b); SetVar(6,20); gosub InterWait; //WaitForTime(20); //PlaySound(0x7401, Vzgunturretsdown,0); SetVar(6,15); gosub InterWait; //WaitForTime(15); SpawnOtherUnit(Eng_G2_1); SpawnOtherUnit(Eng_G2_2); SpawnOtherUnit(Eng_G2_3); SpawnOtherUnit(Eng_G2_4); SetVar(6,10); gosub InterWait; //WaitForTime(10); ChangeCamera(0x80e,20,20); SetVar(4,0); SetVar(6,10); gosub InterWait; //WaitForTime(10); TriggerMessage(13,h13,0x783b); SetVar(6,20); gosub InterWait; //WaitForTime(20); //PlaySound(0x7401, Vzpowerrelayattk1,0); if (OtherUnitDead(Drg_Gr0_01_Scr) != 1) KillOtherUnit(Drg_Gr0_01_Scr); SetVar(6,50); gosub InterWait; //WaitForTime(50); ChangeCamera(0x801,40,20); ResumePlayer(); SetGlobalVar(4,4); //WaitForTime(5); if (GetOtherState(Eng_G2_1) != 0) DespawnOtherUnit(Eng_G2_1); if (GetOtherState(Eng_G2_2) != 0) DespawnOtherUnit(Eng_G2_2); if (GetOtherState(Eng_G2_3) != 0) DespawnOtherUnit(Eng_G2_3); if (GetOtherState(Eng_G2_4) != 0) DespawnOtherUnit(Eng_G2_4); EndFrame(); goto Action; label Action: if (OtherUnitInArea(Eng_G1, -1471, 296, 400) && GetVar(1) == 0) { TeleportOtherUnit(Jkl_Gr2_01_Scr,Timer3_Scr,0,0); TeleportOtherUnit(Jkl_Gr2_02_Scr,Timer3_Scr,0,0); TeleportOtherUnit(Jkl_Gr2_03_Scr,Timer3_Scr,0,0); TeleportOtherUnit(Jkl_Gr2_04_Scr,Timer3_Scr,0,0); SpawnOtherUnit(Jkl_Gr2_01_Scr); SpawnOtherUnit(Jkl_Gr2_02_Scr); SpawnOtherUnit(Jkl_Gr2_03_Scr); SpawnOtherUnit(Jkl_Gr2_04_Scr); SetVar(1,1); SetGlobalVar(2,GetTime() + 600); } // if (PlayerInArea(-393, 1715, 600) && GetVar(1) == 1) // { // SetVar(2,GetTime() + 200); // } // else if (PlayerInArea(-393, 1715, 600) != 1 && GetVar(2) < GetTime() && GetGlobalVar(3) == 0) // { // if (OtherUnitDead(Eng_G1)) // KillOtherUnit(Eng_G1); // if (OtherUnitDead(Eng_G2_1)) // KillOtherUnit(Eng_G2_1); // if (OtherUnitDead(Eng_G2_2)) // KillOtherUnit(Eng_G2_2); // if (OtherUnitDead(Eng_G2_3)) // KillOtherUnit(Eng_G2_3); // if (OtherUnitDead(Eng_G2_4)) // KillOtherUnit(Eng_G2_4); // } EndFrame(); goto Action; label End: EndFrame(); goto End; endscript; beginsub InterWait; if (GetVar(4)) return; SetButtonJump(); if (HasJumped()) { SetVar(4,1); return; } WaitForTime(GetVar(6)); JumpOnButton(false); endsub; $