beginscript; label End: EndFrame(); goto End; label Wait: if (GetState() != 0 && UnitDead() != 1) { ExcTargetType(0x2); IncTargetType(0x40); IncTargetType(0x1); IncludeUTarget(Car1); EndFrame(); goto Ai; } EndFrame(); goto Wait; label Ai: if (OtherUnitDead(Car1) != 1) { IncludeUTarget(Car1); } else if (OtherUnitDead(Car2) != 1) { IncludeUTarget(Car2); } else if (OtherUnitDead(Car3) != 1) { IncludeUTarget(Car3); } else if (OtherUnitDead(Car4) != 1) { IncludeUTarget(Car4); } else if (OtherUnitDead(Car5) != 1) { IncludeUTarget(Car5); } else { IncludeUTarget(APC_G1_2); EndFrame(); goto End; } if (UnitDead()) { WaitForTime(150); SpawnUnit(); EndFrame(); goto Wait; } EndFrame(); goto Ai; label End: EndFrame(); goto End; endscript; $