beginscript; label Wait: if (GetState() != 0 && GetState() != 8 && UnitDead() != 1) { ExcTargetType(0xffffffff); IncTargetType(0x80); IncTargetType(0x2); IncludeGTarget(2); SetFollowRange(0); EndFrame(); goto End; } EndFrame(); goto Wait; label Wait2: if (GetGlobalVar(2) == 1) { if (UnitDead()) { SpawnUnit(); DespawnUnit(); } else if (OnFire(GetUnitID()) != 1) { if (Rnd() > 125) { EnterVehicle (GetUnitID(), APC_G1_2); } else { EnterVehicle (GetUnitID(), APC_G2_1); } } else { WaitForTime(Rnd()); KillUnit(); WaitForTime(50); SpawnUnit(); DespawnUnit(); } EndFrame(); goto Respawn; } EndFrame(); goto Wait2; label Respawn: if (GetState() != 0 && GetState() != 8 && UnitDead() != 1) { ExcTargetType(0xffffffff); IncTargetType(0x80); IncTargetType(0x2); SetFollowRange(0); EndFrame(); goto End; } EndFrame(); goto Respawn; label End: EndFrame(); goto End; endscript; $