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

Can WE read custom animation names?

Status
Not open for further replies.
Level 30
Joined
Jul 23, 2009
Messages
1,029
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