- Joined
- Jan 30, 2020
- Messages
- 710
I have a spell where I want the caster to be "locked up" in an animation for 0.4 seconds or so, being unable to be cancelled by spamming move-orders and also not being cancelled by stuns and such. Is this achiveable?
Current setup is a channel-based ability with Follow Through Time = 0.4 and most other things standard
I set the animation after a 0.0 timer delay, like so:
This works, but is cancellable by the player and by stuns.
Is it possible to prevent it from being cancelled?
Current setup is a channel-based ability with Follow Through Time = 0.4 and most other things standard
I set the animation after a 0.0 timer delay, like so:
-
HHNinjaStrike
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Ninja Strike (channel, Target point)
-
Actions
- Custom script: local timer t = NewTimer()
- Game - Display to (All players) the text: Begin
- Custom script: call TimerStart(t, 0.00, false, function Trig_HHNinjaStrikeAnimation_Actions)
- Custom script: set t = null
-
Events
-
HHNinjaStrikeAnimation
- Events
- Conditions
-
Actions
- Custom script: call SetUnitAnimationByIndex(udg_hh_hero, 8) // Play Attack 2
This works, but is cancellable by the player and by stuns.
Is it possible to prevent it from being cancelled?