• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Playing EXACT Animation..

Status
Not open for further replies.
Level 8
Joined
Mar 26, 2009
Messages
301
Ok; here is the problem. Whenever i make a unit play its certain attack animation ("Attack - 2" for example) it uses "any" of it's attack animations. (In other words; it uses a random animation that contains "attack" word. I tried this with both GUI and Object Editor and the results are same. Is there any way to get rid of that?
 
Level 8
Joined
Mar 26, 2009
Messages
301
Do i write "Attack, 2" as single line in object editor; or "attack" and "2" as seperate so they will look like "attack, 2" after editing is complete.. Well i tried something like that with Blademaster's attack animation and it turned out hero casts bladestorm animation :D
 
Sometimes attack animations don't work on Object Editor fields. Try removing the Animation Names completely and use
  • Trigger
  • Events
    • Unit - A unit begins casting an ability
  • Conditions
    • (Ability being cast) Equal to X
  • Actions
    • Animation - Play (Triggering unit)'s Attack - 2 animation
or
  • Trigger
  • Events
    • Unit - A unit begins casting an ability
  • Conditions
    • (Ability being cast) Equal to X
  • Actions
    • Custom script: call SetUnitAnimationByIndex (GetTriggerUnit(), Y)
In the position of "Y" place a number and test it, until you find the Attack - 2 animation.

Disclaimer: The reason I used "Begins casting an ability" is because the animation is played almost simultaneously with the mana removal of the spell's mana cost.
 
Status
Not open for further replies.
Top