I downloaded Dash spell and i added dummy unit that will stun and damage unit after dash, but dash works and that unit not.
If i try it whitout Dash (if u use spell, only dummy unit will create and it will stun target) it works. what i do wrong?
its in Czech but maybe u can help me.
Here are 2 triggers:
Trigger 2
thx for all replys and help
If i try it whitout Dash (if u use spell, only dummy unit will create and it will stun target) it works. what i do wrong?
its in Czech but maybe u can help me.
Here are 2 triggers:
Code:
Dash Same Speed
Události
Jednotka - A unit Zacina pouzi_vat schopnost
PodmÃ_nky
(Ability being cast) Rovna se |CFFFFF200C|Rharge!
cinnosti
Set Player[10] = (Owner of (Casting unit))
Set ss_const = 6.00
Set casterunit = (Casting unit)
Set castloc = (Position of casterunit)
Set target = (Target point of ability being cast)
Set Hero[9] = (Target unit of ability being cast)
Set faceangle = ((Angle from castloc to target) + 180.00)
Set distance = (Distance between castloc and target)
If (All Conditions are True) then do (Then Actions) else do (ElseActions)
If - conditions
distance bigger than 600.00
Then - actions
Set distance = 600.00
Else - Actions
Do nothing
Jednotka - Add Attribute to casterunit
Animace - Play casterunit's ready animation
SpÃ_naÄ - Turn on Dash Move Same Speed <gen>
Wait (distance / (ss_const x 200.00)) seconds
Jednotka - Remove Attribute from casterunit
SpÃ_naÄ - Turn off Dash Move Same Speed <gen>
Animace - Reset casterunit's animation
--------------- my addon --------
Wait 0.10 seconds
Set Player[10] = (Owner of (Casting unit))
Jednotka - Create 1 Charge for Player[10] at castloc facing StandardnÃ_ orientace budov degrees
Set Hero[10] = (Last created unit)
Jednotka - Hide Hero[10]
Hrdina - Create Charge and give it to Hero[10]
Hrdina - Order Hero[10] to use (Last created item) on Hero[9]
Wait 0.01 seconds
Jednotka - Remove Hero[10] from the game
Wait 0.01 seconds
Custom script: call RemoveLocation(udg_target)
Custom script: call RemoveLocation(udg_castloc)
Trigger 2
Code:
Dash Move Same Speed
Události
Time - Every 0.03 seconds of game time
Conditions
Actions
Set castloc = (Position of casterunit)
Set polarproj = (castloc offset by (ss_const x 5.00) towards (faceangle + 180.00) degrees)
Jednotka - Move casterunit instantly to polarproj, facing (faceangle + 180.00) degrees
Special_ effect - Create a special effect attached to the origin of casterunit using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
Special effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_polarproj)
Custom script: call RemoveLocation(udg_castloc)