[Solved] Changing Attack Animation?

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