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