• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Can WE read custom animation names?

Status
Not open for further replies.
Level 31
Joined
Jul 23, 2009
Messages
1,032
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?
 
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.
Back
Top