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

setting animation

Status
Not open for further replies.
Level 9
Joined
Apr 7, 2010
Messages
480
i have imported a villager with 40 animation.
well. the problem here is that how can i set for example the event as map init and for the action i can now set the new animation string for attack,walk, etc.. using 1 trigger.
well. i just dont want to make new trigger for every animation like
"unit attacks then i set the new animation, unit dies then i set another animation... and so on.."
 
Level 9
Joined
Apr 7, 2010
Messages
480
so i cant set every action with a specific animation using only 1 event?

is it possible to change animation directly using object editor?
 
Level 23
Joined
Oct 20, 2012
Messages
3,075
With spells, yes you can set which animation it will play when it is cast, but I don't think you can do that with units especially with that model because it has different animation IDs. It would be a solution if you just rename the animations you need in wc3 model editor. It is pretty easy if you just know what you're doing./
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Note that you can change the unit's animation tag. For example adding lumber will make it use the animations that have lumber in their name.

You can "change" the attack animation by setting it with SetUnitAnimationByIndex. You run that after a 0.00 second timer that is started when the unit attacks. This however might not be the optimal solution.
 
Status
Not open for further replies.
Top