• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

stand animation

Status
Not open for further replies.
Level 30
Joined
Jul 31, 2010
Messages
5,259
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 24
Joined
Mar 29, 2004
Messages
1,992
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,259
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