beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { ExcTargetType(0x2); IncTargetType(0x1); TargetFires(1); SetFollowRange(0); //SelectWeapons(0, 1, 0); EndFrame(); goto BarnFire; } EndFrame(); goto Wait; label BarnFire: if (GetGlobalVar(3) == 1) { ExcTargetType(0x2); IncTargetType(0x1); TargetFires(1); SetFollowWaypoint(222,0,0); SetFollowRange(0); label Loop: if (GetFollowMode() == 3 || OtherUnitInRange(Sld_Gr3_01_Scr,1000)) { ExcTargetType(0x2); IncTargetType(0x1); TargetFires(1); EndFrame(); goto CheckFire; } EndFrame(); goto Loop; } EndFrame(); goto BarnFire; label CheckFire: if (GetVar(1) != 1 && GetGlobalVar(3) >= 1) { SetVar(0, GetTime()+650); SetVar(1,1); } if (PlayerInRange(600) != 1 && GetVar(0) < GetTime() && GetVar(2) != 1 && GetGlobalVar(3) >= 1) { TriggerMessage(50,h50,0x783b); SetVar(2,1); } EndFrame(); goto CheckFire; label End: EndFrame(); goto End; endscript; $