- Joined
- Sep 10, 2006
- Messages
- 185
I'm trying to make a trigger to make units blink when they are ordered to move to a point greater than 300 away from them. This is what I've come up with --
ty
-
Blink
-
Events
- Unit - A unit Is issued an order targeting a point
-
Conditions
- (Issued order) Equal to (Order(move))
-
Actions
- Set BlinkPos[1] = (Target point of issued order)
- Set BlinkPos[2] = (Position of (Triggering unit))
- Set BlinkReal = (Distance between BlinkPos[1] and BlinkPos[2])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- BlinkReal Greater than or equal to 300.00
-
Then - Actions
- Unit - Order (Triggering unit) to Night Elf Warden - Blink BlinkPos[1]
- Else - Actions
-
If - Conditions
- -------- Leaks --------
- Custom script: call RemoveLocation(udg_BlinkPos[1])
- Custom script: call RemoveLocation(udg_BlinkPos[2])
-
Events
ty