• 🏆 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!

[Solved] Change unit's attack animation

Status
Not open for further replies.
Level 8
Joined
Apr 23, 2011
Messages
322
How to change unit's attack animation?

Example:
A unit has attack 1,2 and 3; that unit plays a random "attack" animation every time it attacks, so...
I want that unit's "attack 1" to be played when unit uses its first attack;
"attack 2" when it uses its second attack;
and "attack 3" when it bashes(not critical)

I tried changing animation names in sequence editor (model editor), but it didn't work.Also:how to make unit's "spell" animation play when it attacks?
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
  • Animation - add spell animation tag to unit
Will make it play its spell animation on attack, provided the animation is called "attack spell". Not all units' spell animation are called this.

For the rest, you can rename the animations to e.g.
attack alternate
attack lumber
attack gold
And then add/remove the relevant animation tag.
 

sentrywiz

S

sentrywiz

The first question, if you need specific animations tied with specific "dummy spell casts" then you can modify the animation tab in each spell. You can put "attack, one" "attack, two", "attack, three" on spell cast. You can put whatever animation you like though, just be careful to see if the unit has those attack animations, otherwise it will just stand.

The second question, maybe a forceful trigger code "Unit Attacks" event you can forcefully cast the unit's cast spell animation.
 
Status
Not open for further replies.
Top