Status: NOT RESOLVED
I need help with a spell, i need the targeted unit to get pushed back over a time interval *like 2 seconds* 500 distance. Im having trouble cause its moving immidiently.
my 2 triggers didnt work they got teleported either right next to the hero, or somewhere random in a 300 aoe.
Cyclone 1=Position of the ability being cast
Cyclone 2=Position of unit being cast + (1,0)
Cyclone 3=Target unit
Cyclone 4=Integer value
and
I need help with a spell, i need the targeted unit to get pushed back over a time interval *like 2 seconds* 500 distance. Im having trouble cause its moving immidiently.
my 2 triggers didnt work they got teleported either right next to the hero, or somewhere random in a 300 aoe.
Cyclone 1=Position of the ability being cast
Cyclone 2=Position of unit being cast + (1,0)
Cyclone 3=Target unit
Cyclone 4=Integer value
Code:
faeafea
Events
Unit - A unit Starts the effect of an ability
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Set Cyclone3 = (Target unit of ability being cast)
Set Cyclone1 = (Position of Cyclone3)
Trigger - Turn on Knockback <gen>
and
Code:
Knockback
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Unit - Move Cyclone3 instantly to Cyclone2
Set Cyclone4 = (Cyclone4 + 1)
If (Cyclone4 Equal to 500) then do (Trigger - Turn off (This trigger)) else do (Do nothing)