• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Casting animation

Status
Not open for further replies.
Level 3
Joined
Mar 1, 2015
Messages
53
I want my unit to play animation while casting a spell, it works but player can move unit to cancel the animation...

  • Untitled Trigger 002
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Hot Blooded
        • Then - Actions
          • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl
          • Unit - Order (Triggering unit) to Stop
          • Animation - Play (Triggering unit)'s Stand Channel animation
          • Player - Set (Owner of (Triggering unit)) Current gold to 120
        • Else - Actions
 
Level 3
Joined
Mar 1, 2015
Messages
53
Yes it works but when my hero attacks and uses the ability, he will just keep attacking the target only way to cancel it is to press S.
 
Level 25
Joined
May 11, 2007
Messages
4,651
Change the "a unit begins casting an ability" to a unit starts the effect of an ability.

In the ability itself, set the required animation names to the animation you want to use.
If you want the spell to be a channeled spell, I recommend unit the "Channel" Ability as a custom ability.
 
Status
Not open for further replies.
Top