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

stand animation

Status
Not open for further replies.
Level 30
Joined
Jul 31, 2010
Messages
5,246
how do I work a specific unit's stand animation in a trigger?

for example I want to use a villager male's stand 3 animation I tried doing this:
  • Animation - Play Villager (Male) 0000 <gen>'s stand - 3 animation
but it didn't work, anyone mind of revealing the true way? :)
 
Level 23
Joined
Mar 29, 2004
Messages
1,979
Use this:

JASS:
call SetUnitAnimationByIndex( unit, index )
Index counts up from 0 in the order that the sequences are stored in the model file (counting up from the top as you scroll down), so you'll need to convert to MDL or use some other convenience to find the right index.
 
Level 30
Joined
Jul 31, 2010
Messages
5,246
damn I'll try to soothe a more gentle way for this! anyways thank you both :p

[EDIT]
I found a lesser way but the random animations that undergo 2 more versions can either change like this:
  • Animation - Play DUDE 0001 <gen>'s stand animation, using only Rare animations
case solved
 
Last edited:
Status
Not open for further replies.
Top