- Joined
- Apr 21, 2010
- Messages
- 9
Im having trouble getting the knockback for this trigger to work. any help would be greatly Apreciated.
-
Untitled Trigger 005
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Clash
-
-
Actions
-
Set KBAngle = (Angle from (Position of (Casting unit)) to (Position of (Target unit of ability being cast)))
-
Set KBDistance = (400.00 x 0.04)
-
Set RemainingTime = 40
-
Hashtable - Save KBDistance as 0 of (Key (Target unit of ability being cast)) in (Last created hashtable)
-
Hashtable - Save KBAngle as 1 of (Key (Target unit of ability being cast)) in (Last created hashtable)
-
Hashtable - Save RemainingTime as 2 of (Key (Target unit of ability being cast)) in (Last created hashtable)
-
Unit Group - Add (Target unit of issued order) to KBUnits
-
-
-
Untitled Trigger 006
-
Events
-
Time - Every 0.04 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in KBUnits and do (Actions)
-
Loop - Actions
-
Set KBDistance = (Load 0 of (Key (Target unit of ability being cast)) from (Last created hashtable))
-
Set KBAngle = (Load 1 of (Key (Target unit of ability being cast)) from (Last created hashtable))
-
Set RemainingTime = (Load 2 of (Key (Target unit of ability being cast)) from (Last created hashtable))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
RemainingTime Greater than 0
-
-
Then - Actions
-
Unit - Move (Target unit of ability being cast) instantly to ((Position of (Target unit of ability being cast)) offset by KBAngle towards KBDistance degrees)
-
Hashtable - Save (RemainingTime - 4) as 2 of (Key (Target unit of ability being cast)) in (Last created hashtable)
-
-
Else - Actions
-
Hashtable - Clear all child hashtables of child (Key (Load 0 of (Key (Target unit of ability being cast)) in (Last created hashtable))) in (Last created hashtable)
-
Hashtable - Clear all child hashtables of child (Key (Load 1 of (Key (Target unit of ability being cast)) in (Last created hashtable))) in (Last created hashtable)
-
Hashtable - Clear all child hashtables of child (Key (Load 2 of (Key (Target unit of ability being cast)) in (Last created hashtable))) in (Last created hashtable)
-
Unit Group - Remove all units of KBUnits from KBUnits
-
-
-
-
-
-