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

[Solved] Changing Attack Animation?

Status
Not open for further replies.
Level 19
Joined
Feb 19, 2009
Messages
849
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 19
Joined
Feb 19, 2009
Messages
849
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