- Joined
- Aug 3, 2004
- Messages
- 2,909
I have this trigger. What I want is for the dummy to be unable to cast if there is another dummy within X range of Fault_Point. It was suggested I use an array.
-
Fault
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-

Actions
-


Set Fault_Group = (Units in (Playable map area) matching (((Matching unit) has buff Howl of Terror) Equal to True))
-


Unit Group - Pick every unit in Fault_Group and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Picked unit) is alive) Equal to True
-
-





Then - Actions
-






Set Fault_Point = (Position of (Picked unit))
-






Unit - Create 1 Dummy for (Owner of (Picked unit)) at Fault_Point facing Default building facing degrees
-






Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
-






Unit - Add Earthquake to (Last created unit)
-






Unit - Order (Last created unit) to Orc Far Seer - Earthquake Fault_Point
-






Custom script: call RemoveLocation(udg_Fault_Point)
-
-





Else - Actions
-
-
-
-


Custom script: call DestroyGroup (udg_Fault_Group)
-
-




