- Joined
- Feb 18, 2016
- Messages
- 96
So i made a skill that moves all enemy units in range to a point but i want this trigger to be a bit animated instead of instatly move.
-
Detener
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Custom Ability
-
Actions
- Set ETPoint = (Position of (Target unit of ability being cast))
- Set ETGroup = (Units within 500.00 of ETPoint)
-
Unit Group - Pick every unit in ETGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True
- ((Picked unit) is A structure) Equal to False
-
Then - Actions
- Unit - Move (Picked unit) instantly to ETPoint
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup (udg_ETGroup)
- Custom script: call RemoveLocation (udg_ETPoint)
-
Events
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
- Actions