i was trying to make the hero pull the target.
I got this trigger.(Thanks to Zanar)
But it wont works. =O
Can someone say why? =X
I got this trigger.(Thanks to Zanar)
Code:
Angle
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to (==) Come and Go!!!
Actions
Set Angle = (Angle from (Position of (Triggering unit)) to (Position of (Target unit of ability being cast)))
Trigger - Turn on Pull <gen>
Code:
Pull
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Unit - Move (Target unit of ability being cast) instantly to ((Position of (Triggering unit)) offset by 30.00 towards Angle degrees)
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between (Position of (Triggering unit)) and (Position of (Target unit of ability being cast))) Less than or equal to (<=) 80.00
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
But it wont works. =O
Can someone say why? =X