beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { ExcTargetType(0xffffffff); IncTargetType(0x80); IncTargetType(0x2); IncludeGTarget(2); SetFollowRange(0); //SelectWeapons(0,1,0); EndFrame(); goto End; } EndFrame(); goto Wait; WaitForTime(10); label End: EndFrame(); goto End; endscript; $