[Solved] Changing Attack Animation?

Level 12
Joined
Feb 19, 2009
Messages
579
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,243
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 12
Joined
Feb 19, 2009
Messages
579
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!
 
Top