beginscript; label Wait: if (GetGlobalVar(1) == 5) { SpawnUnit(); WaitForTime(10); ExcTargetType(0xffffffff); //BreakWptsOnAttack(); EndFrame(); goto BridgeCheck; } EndFrame(); goto Wait; label BridgeCheck: //if(OtherUnitDead(Bridge) && UnitInArea(-5336,-4954,200)) //{ // KillUnit(); // EndFrame(); // goto End; //} //if(OtherUnitDead(Bridge) && UnitInArea(-5336,-4954,200) != 1) //{ // SetFollowWaypoint(125,0,0); // ExcludeGTarget(0x1); // WaitForTime(300); // IncTargetType(0xffffffff); // ExcTargetType(0x2); // IncTargetType(0x1); // IncludeGTarget(3); // EndFrame(); // goto End; //} if(OtherUnitInRange(BridgeTel,250)) { IncTargetType(0xffffffff); ExcTargetType(0x2); IncTargetType(0x1); IncludeGTarget(3); EndFrame(); goto End; } EndFrame(); goto BridgeCheck; label End: EndFrame(); goto End; endscript; $