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

[Trigger] Animation related problem

Status
Not open for further replies.
Level 3
Joined
Oct 6, 2007
Messages
43
I have made a charge ability that moves unit periodically towards point for 1 second. But the problem is here that the hero just moves forward and plays no animation and when I put Animation - Play units walk animation in the trigger, the unit still just stands and keeps moving forward.
 
Some more details about your trigger would be nice
It makes it a lot easyer to help if we can see it instead of having to imagine it
 
You need to use a custom script line:

  • Set YourUnit = ...
  • Custom script: call SetUnitAnimationByIndex(udg_YourUnit, <animation id>)
You have to check the unit's walk animation id. You can get it by converting that unit's mdx file to mdl, open it in notepad, search the "sequences" part and find "walk", the first animation listed there is 0, then it goes 1, 2, 3.... count until you get to the "walk" animation and that is the animation id. You just put it instead of the "<animation id>".

The variable doesn't have to be named YourUnit, you can name it whatever you want, but change that part after udg_ to the new variable name as well.

If anything's not clear, I can explain further.
 
You need to use a custom script line:

  • Set YourUnit = ...
  • Custom script: call SetUnitAnimationByIndex(udg_YourUnit, <animation id>)
You have to check the unit's walk animation id. You can get it by converting that unit's mdx file to mdl, open it in notepad, search the "sequences" part and find "walk", the first animation listed there is 0, then it goes 1, 2, 3.... count until you get to the "walk" animation and that is the animation id. You just put it instead of the "<animation id>".

The variable doesn't have to be named YourUnit, you can name it whatever you want, but change that part after udg_ to the new variable name as well.

If anything's not clear, I can explain further.

Do you set the animation that way after you move it, or before?
 
Status
Not open for further replies.
Back
Top