beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { IncludeUTarget(GenTargt); ExcTargetType(0x2); EndFrame(); goto WaitForEng; } EndFrame(); goto Wait; label WaitForEng: if (OtherUnitInRange(Eng_G1,200)) { IncludeUTarget(Eng_G1); ExcTargetType(0x2); EndFrame(); goto End; } EndFrame(); goto WaitForEng; label End: if (GetGlobalVar(3) == 3 || GetGlobalVar(3) == 10) { SelectWeapons(0,0,0); SetFollowWaypoint(65,0,0); ExcTargetType(0xffffffff); } EndFrame(); goto End; endscript; $