Hey Ive made another trigger here and its just impossible I thought I found the mistake but then when I fixed it wont work.
2 Triggers when hitting them with Shadow strike the Target is supposed to be pushed back but now they get teleported to the center of the map its very weird !
2 Triggers when hitting them with Shadow strike the Target is supposed to be pushed back but now they get teleported to the center of the map its very weird !
-
Dwarf Shadow Strike
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Shadow Strike
-
-

Actions
-


Set ss_const = 6.00
-


Set targetunit = (Target unit of ability being cast)
-


Set targetloc = (Position of (Targeted unit))
-


Set Casterloc = (Position of (Casting unit))
-


Set caster = (Triggering unit)
-


Set faceangle = ((Angle from Casterloc to targetloc) + 180.00)
-


Set distance = (Distance between targetloc and (Position of caster))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




distance Greater than 500.00
-
-



Then - Actions
-




Set distance = 500.00
-
-



Else - Actions
-
-


Custom script: call RemoveLocation (udg_Casterloc)
-


Trigger - Turn on Dwarf Pushback Again <gen>
-


Wait (distance / (ss_const x 500.00)) game-time seconds
-


Trigger - Turn off Dwarf Pushback Again <gen>
-


Custom script: call RemoveLocation (udg_targetloc)
-
-
-
Dwarf Pushback Again
-

Events
-


Time - Every 0.03 seconds of game time
-
-

Conditions
-

Actions
-


Set targetloc = (Position of (Targeted unit))
-


Set polarproj = (targetloc offset by (ss_const x 5.00) towards (Facing of caster) degrees)
-


Unit - Move targetunit instantly to polarproj, facing faceangle degrees
-


Custom script: call RemoveLocation(udg_polarproj)
-


Custom script: call RemoveLocation(udg_Casterloc)
-
-



