• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Solved] Changing Attack Animation?

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