So I'm using this trigger, and for some odd reason it WORKS with "less than" but not with "greater than" which is what I need:
Any ideas?
EDIT: It seems local variables aren't recognized inside the if statement. Is there a way to solve this?
Code:
Arthas return
Events
Time - Every 3.00 seconds of game time
Conditions
Actions
Custom script: local unit udg_target
Custom script: local location udg_arthas
Custom script: local location udg_arthas2
Set VariableSet target = Deathlord Arthas 0014 <gen>
Set VariableSet arthas = (Position of target)
Set VariableSet arthas2 = (Center of Arthas <gen>)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between arthas and arthas2) Greater than 600.00
Then - Actions
Unit - Move target instantly to arthas2
Else - Actions
Do nothing
Custom script: call RemoveLocation(udg_arthas)
Custom script: call RemoveLocation(udg_arthas2)
Custom script: set udg_target = null
Any ideas?
EDIT: It seems local variables aren't recognized inside the if statement. Is there a way to solve this?
Last edited: