- Joined
- Jul 2, 2013
- Messages
- 12
Hi,Im trying to create a basick knockback skill that doesnt include player owned unit and any kind of structure regardless of who it belongs to.
this is my triger so far (the actual knockback system is in a folowing triger that has been checked and works fine,the moment I try to exclude above units the knockback triger <push> doesnt fire for some reason...)
this is my triger so far (the actual knockback system is in a folowing triger that has been checked and works fine,the moment I try to exclude above units the knockback triger <push> doesnt fire for some reason...)
-
int
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Mythic Gale
- (Level of Mythic Gale for (Triggering unit)) Equal to 1
-
Actions
- Set KnockAngle = (Position of (Triggering unit))
- Set KncokTargetPoint = (Target point of ability being cast)
-
Unit Group - Pick every unit in (Units within 300.00 of (Target point of ability being cast)) and do (Actions)
-
Loop - Actions
- Set temppick = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((temppick is A structure) Equal to True) or ((Owner of temppick) Equal to (Owner of (Triggering unit)))
- Then - Actions
-
Else - Actions
- Set KnockTarget = (Last created unit group)
- Trigger - Turn on push <gen>
- Wait 2.00 seconds
- Trigger - Turn off push <gen>
-
If - Conditions
-
Loop - Actions
-
Events
-
push
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in KnockTarget and do (Actions)
-
Loop - Actions
- Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 5.00 towards (Angle from KnockAngle to (Position of (Picked unit))) degrees)
-
Loop - Actions
-
Unit Group - Pick every unit in KnockTarget and do (Actions)
-
Events