• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Numbered Attack Animation for Spells

Status
Not open for further replies.
Level 11
Joined
Feb 11, 2010
Messages
199
Alright, I've run into a little bit of an issue. When setting the animation for a given spell (inputting the animation strings, all that), I'm not sure how to make a unit do, say, "attack 2" or "attack 3". When I put in such things the unit seems to randomly choose any of its attack animations for the spell.

How should I fix this?
 
Level 6
Joined
Nov 12, 2007
Messages
134
Use this custom script :

call SetUnitAnimationByIndex(GetTriggerUnit(), (insert a number here without the parenthesis and test starting with 1 until you get the right animation))

Example :

  • Custom script: call SetUnitAnimationByIndex(GetTriggerUnit(), 1)
  • Custom script: call SetUnitAnimationByIndex(GetTriggerUnit(), 2)
  • Custom script: call SetUnitAnimationByIndex(GetTriggerUnit(), 3)
  • etc...
 
Level 11
Joined
Feb 11, 2010
Messages
199
Use this custom script :

call SetUnitAnimationByIndex(GetTriggerUnit(), (insert a number here without the parenthesis and test starting with 1 until you get the right animation))

Example :

  • Custom script: call SetUnitAnimationByIndex(GetTriggerUnit(), 1)
  • Custom script: call SetUnitAnimationByIndex(GetTriggerUnit(), 2)
  • Custom script: call SetUnitAnimationByIndex(GetTriggerUnit(), 3)
  • etc...

...And how, exactly, would I use that in a complete trigger?

If I try to do it when beginning the casting, starting the effect of, or anything of the sort relating to an ability, it does *absolutely nothing*. How do I stop the animation from getting cancelled?

use magos model editor to change the animation names.
look somewhere at the tools, its easy to handle.
Its best to rename the 2 and 3 to "lumer" or/and "gold"

How do I rename an animation in Magos model editor? Also, would this require me to import it as a new model?
 
Last edited:
Status
Not open for further replies.
Top