• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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.."
 
so i cant set every action with a specific animation using only 1 event?

is it possible to change animation directly using object editor?
 
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./
 
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.
Back
Top