- Joined
- Jan 23, 2015
- Messages
- 788
-
ES In Range
-

Events
-


Time - Every 0.40 seconds of game time
-
-

Conditions
-

Actions
-


Game - Display to (All players) the text: (String((Number of units in ESAll)))
-


Game - Display to (All players) the text: trigger works
-


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



Loop - Actions
-




Set ESAllIndex = (Player number of (Owner of (Picked unit)))
-




Set ESAllDummiesIndex[ESAllIndex] = (Custom value of (Picked unit))
-




Set ESAllPosition[ESAllDummiesIndex[ESAllIndex]] = (Position of (Picked unit))
-




Game - Display to (All players) the text: (ES Unit ID + ((String(ESAllDummiesIndex[ESAllIndex])) + ( and Player ID + ((String(ESAllIndex)) + ( checking if in range of 500 from + (Name of ESTarget[ESAllIndex[ESAllIndex]]))
-




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





If - Conditions
-






(Distance between ESAllPosition[ESAllDummiesIndex[ESAllIndex]] and ESTargetPos[ESAllIndex]) Less than or equal to 500.00
-
-





Then - Actions
-






Game - Display to (All players) the text: ES in range
-






Unit Group - Add (Picked unit) to ESPossHero[(Player number of (Owner of ESTarget[ESAllIndex]))]
-






Unit Group - Remove (Picked unit) from ESAll
-






Custom script: call RemoveLocation(udg_ESAllPosition[udg_ESAllDummiesIndex[udg_ESAllIndex]])
-
-





Else - Actions
-
-




Custom script: call RemoveLocation(udg_ESAllPosition[udg_ESAllDummiesIndex[udg_ESAllIndex]])
-
-
-
-








