beginscript; label Start: if (GetState() != 0 && UnitDead() != 1) { SetFollowWaypoint(4,0,0); SetVar(0,0); DisableAvoidanceTurn(1); EndFrame(); goto CheckDead; } EndFrame(); goto Start; label CheckDead: if(OtherUnitDead(Jkl_Gr3_03_Scr) && GetVar(1) != 1) { PlaySound(Ftk_Gr1_01_scr, engine_startup,0); SetVar(1,1); } else if (GetVar(2) < GetTime() && GetVar(1) != 1 && PlayerInRange(1000)) { SetVar(2, GetTime()+50); PlaySound(Ftk_Gr1_01_scr, misfire,0); WaitForTime(10); PlaySound(Ftk_Gr1_01_scr, misfire,0); } if(GetGlobalVar(7) >= 4) { SetGlobalVar(7,0); TriggerUnit(HudTrig1); //WaitForTime(20); TriggerUnit(Jep_Gr1_02_Scr); //TriggerMessage(28,0xffff,0xffff); SetFollowWaypoint(6,0,0); WaitForTime(80); if (GetVar(7) != 1) TriggerMessage(48,h48,0x7804); EndFrame(); goto CheckEnd; } if (OtherUnitInRange(Jep_Gr1_02_Scr,250) && GetVar(4) != 1) { SetVar(4,1); SetVar(5, GetTime()+100 ); } if (PlayerInRange(600) != 1 && OtherUnitInRange(Jep_Gr1_02_Scr,200) && GetVar(0) != 1 && GetVar(0) != 2 && GetVar(5) < GetTime()) { TriggerMessage(24,h24,0x783b); SetVar (3, GetTime()+300); SetVar(0,1); } if (PlayerInRange(600)) { SetVar(0,2); } else if (GetVar(3) < GetTime() && GetVar(0) == 1) { TriggerUnit(HudTrig1); SetVar(7,1); // TeleportOtherUnit(Jkl_Gr2_01_Scr, LoseTele1, 0, 0); // TeleportOtherUnit(Jkl_Gr2_02_Scr, LoseTele1, 0, -20); // TeleportOtherUnit(Jkl_Gr2_03_Scr, LoseTele1, -20, 0); // TeleportOtherUnit(Jkl_Gr2_04_Scr, LoseTele1, 0, -40); // SpawnOtherUnit (Jkl_Gr2_01_Scr); // SpawnOtherUnit (Jkl_Gr2_02_Scr); // SpawnOtherUnit (Jkl_Gr2_03_Scr); // SpawnOtherUnit (Jkl_Gr2_04_Scr); // // KillOtherUnit (Jkl_Gr2_01_Scr); // KillOtherUnit (Jkl_Gr2_02_Scr); // KillOtherUnit (Jkl_Gr2_03_Scr); // KillOtherUnit (Jkl_Gr2_04_Scr); // WaitForTime(30); // PausePlayer(); // KillOtherUnit(Ftk_Gr1_01_scr); // KillOtherUnit(Sld_Gr0_01_Scr); // KillOtherUnit(Sld_Gr0_02_Scr); // KillOtherUnit(Sld_Gr0_03_Scr); // KillOtherUnit(Sld_Gr0_04_Scr); // DespawnOtherUnit(Jep_Gr1_02_Scr); // ChangeCamera(0x810,50,50); // TriggerMessage(39,h39,0x783b); // WaitForTime(80); // EndLevel(0); } EndFrame(); goto CheckDead; label CheckEnd: if (GetFollowMode() == 3) { SetFollowWaypoint(13,0,0); EndFrame(); goto CheckEnd2; } EndFrame(); goto CheckEnd; label CheckEnd2: if (GetFollowMode() == 3) { if (OtherUnitDead(Sld_Gr0_01_Scr) != 1) ExitVehicle (Sld_Gr0_01_Scr, Ftk_Gr1_01_scr,182); if (OtherUnitDead(Sld_Gr0_02_Scr) != 1) ExitVehicle (Sld_Gr0_02_Scr, Ftk_Gr1_01_scr,183); if (OtherUnitDead(Sld_Gr0_03_Scr) != 1) ExitVehicle (Sld_Gr0_03_Scr, Ftk_Gr1_01_scr,229); if (OtherUnitDead(Sld_Gr0_04_Scr) != 1) ExitVehicle (Sld_Gr0_04_Scr, Ftk_Gr1_01_scr,228); //SpawnOtherUFromObj (Sld_Gr0_01_Scr, Ftk_Gr1_01_scr); //SpawnOtherUFromObj (Sld_Gr0_02_Scr, Ftk_Gr1_01_scr); //SpawnOtherUFromObj (Sld_Gr0_03_Scr, Ftk_Gr1_01_scr); //SpawnOtherUFromObj (Sld_Gr0_04_Scr, Ftk_Gr1_01_scr); EndFrame(); goto End; } if ((OtherUnitInRange(Home,300) || Triggered()) && GetVar(6) != 1) { if (GetVar(7) != 1) TriggerMessage(29,h29,0x783b); SetVar(6,1); } EndFrame(); goto CheckEnd2; label End: EndFrame(); goto End; endscript; $