~GaLs~
† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
- Reaction score
- 180
I try and fix the problem for u...just gimme a sec...
I will edit this post
Edit:
Yeah i got ur problem solve...but i duno if u want this type of solving method....It is hard to fix this bcoz u are using walk and not slide trigger
I will edit this post
Edit:
Yeah i got ur problem solve...but i duno if u want this type of solving method....It is hard to fix this bcoz u are using walk and not slide trigger
Code:
Lightning Rush
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Lightning Rush
Actions
Set LR_Caster = (Casting unit)
Set LR_Target_Point = (Target point of ability being cast)
[b]If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain pathing at LR_Target_Point of type Walkability is off) Equal to True
Then - Actions
Game - Display to (All players) the text: No sliding to unwal...
Custom script: call RemoveLocation(udg_LR_Target_Point)
Custom script: call RemoveLocation(udg_LR_Caster_Position)
Skip remaining actions
Else - Actions[/b]
Set LR_Caster_Position = (Position of LR_Caster)
Selection - Remove (Casting unit) from selection for (Owner of (Casting unit))
Unit - Hide (Casting unit)
Unit - Create 1 Lightnng Rush dummy for (Owner of (Casting unit)) at LR_Caster_Position facing LR_Caster_Position
Set LR_dummy = (Last created unit)
Unit - Order LR_dummy to Move To LR_Target_Point
Trigger - Turn on Lightning Rush Effects <gen>
Wait ((Distance between LR_Target_Point and LR_Caster_Position) / (Current movement speed of LR_dummy)) seconds
Custom script: call RemoveLocation(udg_LR_Caster_Position)
Trigger - Turn off Lightning Rush Effects <gen>
Unit - Remove LR_dummy from the game
Unit - Move LR_Caster instantly to LR_Target_Point
Unit - Unhide LR_Caster
Custom script: call RemoveLocation(udg_LR_Target_Point)
Animation - Play LR_Caster's stand ready animation
Selection - Add LR_Caster to selection for (Owner of LR_Caster)
Selection - Select LR_Caster for (Owner of LR_Caster)