beginscript; SetVar(0,0); label Trig: if ((OtherUnitInRange(Tnk_G2_1,200)) && GetVar(0) == 0) { TeleportOtherUnit(Spt_G4_02, TPJak5, 0, 0); TeleportOtherUnit(Spt_G4_03, TPJak5, 0, 0); TeleportOtherUnit(Jak_G2_01, TPJak4, 0, 0); TeleportOtherUnit(Jak_G2_02, TPJak4, 0, 0); TeleportOtherUnit(Jak_G2_03, TPJak4, 0, 0); TeleportOtherUnit(Jak_G2_04, TPJak4, 0, 0); if (OtherUnitDead(Spt_G4_03)) SpawnOtherUnit(Spt_G4_03); if (OtherUnitDead(Spt_G4_02)) SpawnOtherUnit(Spt_G4_02); // if (OtherUnitDead(Jak_G2_01)) // SpawnOtherUnit(Jak_G2_01); // if (OtherUnitDead(Jak_G2_02)) // SpawnOtherUnit(Jak_G2_02); // if (OtherUnitDead(Jak_G2_03)) // SpawnOtherUnit(Jak_G2_03); // if (OtherUnitDead(Jak_G2_04)) // SpawnOtherUnit(Jak_G2_04); //SpawnOtherUnit(Spt_G5_6); //SpawnOtherUnit(Fir_G5_3); SpawnOtherUnit (Sld_G3_1); SpawnOtherUnit (Sld_G3_2); SpawnOtherUnit (Sld_G3_3); SpawnOtherUnit (Sld_G3_4); SpawnOtherUnit (Sld_G2_1); SpawnOtherUnit (Sld_G2_2); SpawnOtherUnit (Sld_G2_3); SpawnOtherUnit (Sld_G2_4); SpawnOtherUnit (Sld_G2_5); SpawnOtherUnit (Sld_G2_6); SpawnOtherUnit (Sld_G2_7); SpawnOtherUnit (Sld_G2_8); EndFrame(); goto Trig2; } EndFrame(); goto Trig; label Trig2: if ((OtherUnitInRange(Tnk_G2_1,200) || PlayerInRange(200)) && GetGlobalVar(0) >= 4) { SetGlobalVar(2,3); if (OtherUnitDead(Spt_G4_01)) { TeleportOtherUnit(Spt_G4_01, TPJak4, 0, 0); SpawnOtherUnit(Spt_G4_01); } if (OtherUnitDead(Spt_G4_02)) { TeleportOtherUnit(Spt_G4_02, TPJak4, 0, 0); SpawnOtherUnit(Spt_G4_02); } if (OtherUnitDead(Spt_G4_03)) { TeleportOtherUnit(Spt_G4_03, TPJak4, 0, 0); SpawnOtherUnit(Spt_G4_03); } if (OtherUnitDead(Spt_G4_04)) { TeleportOtherUnit(Spt_G4_04, TPJak4, 0, 0); SpawnOtherUnit(Spt_G4_04); } EndFrame(); goto End; } EndFrame(); goto Trig2; label End: EndFrame(); goto End; endscript; $