Stop
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
Set Unit_Group = (Units in (Playable map area))
Unit Group - Pick every unit in Unit_Group and do (Actions)
Loop - Actions
Set Point1 = (Position of (Picked unit))
Destructible - Pick every destructible within 96.00 of Point1 and do (Set Integer = (Integer + 1))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Integer Greater than or equal to 1
Then - Actions
Unit - Order (Picked unit) to Stop
Set Point2 = (Point1 offset by 32.00 towards ((Facing of (Picked unit)) + 180.00) degrees)
Unit - Move (Picked unit) instantly to Point2
Else - Actions
Custom script: call RemoveLocation(udg_Point2)
Set Integer = 0
Custom script: call RemoveLocation(udg_Point1)
Custom script: call DestroyGroup(udg_Unit_Group)