beginscript; label Wait: if (OtherUnitDead(Caravan1)) { SpawnUnit(); ExcTargetType(0xffffffff); EndFrame(); goto Wait2; } EndFrame(); goto Wait; label Wait2: if (PlayerInRange(6000)) { //WaitForTime(10); ReEvaluate(); //ExcTargetType(0); //ExcTargetType(0x2); IncTargetType(0xffffffff); if (Rnd() > 125) { IncludeUTarget(0x7401); } else { IncludeGTarget(3); } ReEvaluate(); //TriggerMessage(0,0xffff,0xffff); BreakWptsOnAttack(); EndFrame(); goto End; } EndFrame(); goto Wait2; label End: EndFrame(); goto End; endscript; $