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

[Solved] Changing Attack Animation?

Status
Not open for further replies.
Level 18
Joined
Feb 19, 2009
Messages
800
Hey guys, i'm using Graber's "Villager 255 Animations model in a map.

http://www.hiveworkshop.com/forums/...55-animations-192204/?prev=r=20&d=list&page=2

I'm trying to get the model to shoot as an attack, the shooting animation is "Stand Victory - 41".

Is there a way to make "Stand Victory -41" the default attack? Can it be done in the object editor? Or is it not even possible in the first place?

Any help would be greatly appreciated.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
The easiest solution is this:
  • Untitled Trigger 041
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Paladin
    • Actions
      • Custom script: call SetUnitAnimationByIndex(GetAttacker(), 1)
You just need to find the correct animation index to replace the 1.
 
Level 18
Joined
Feb 19, 2009
Messages
800
The easiest solution is this:
  • Untitled Trigger 041
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Paladin
    • Actions
      • Custom script: call SetUnitAnimationByIndex(GetAttacker(), 1)
You just need to find the correct animation index to replace the 1.

Thanks for the help!
 
Status
Not open for further replies.
Top