• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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