• 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.

Can WE read custom animation names?

Status
Not open for further replies.
Level 30
Joined
Jul 23, 2009
Messages
1,033
I will need the animation tags such as Gold, Lumber, Channel etc for my model I am working on but I also need to add spesific animations for other things and I wonder, can I make an animation called like "Cinematic001" in my model? I have seen one model before that had more than hundred animations and the most ones were named something like that.

How will this work?
 
Level 11
Joined
Apr 28, 2008
Messages
696
Simple move away from the names and use:

JASS:
call SetUnitAnimationByIndex(unit u, index i)

By using this the animation can be accessed over their index. The first animation in the modelfile will become animation 0 and than counting up. Just like an array.
 
Status
Not open for further replies.
Top