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

How to change attack animation depending on item?

Status
Not open for further replies.
Level 2
Joined
Mar 20, 2012
Messages
22
Say I have 3 weapons:

Sword
Mace
Spear

How to change the Villagerman(55 anims) to use different attack animations With different items equipped?
 
Level 14
Joined
Jun 27, 2008
Messages
1,325
Level 30
Joined
Nov 29, 2012
Messages
6,637
You can try reading this out: http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=32588

Most likely at this part:
The Set Unit Animation by Index Function
Unfortunately but not surprisingly Blizzard forgot to put the Set Unit Animation by Index into GUI. This means you have to use the Custom Script Action. You could also use World Editor Unlimited by Pitzermike which has the Set Unit Animation by Index as an added action.

The function basically allows you to play ANY specific animation for a unit. It doesn’t take into account any strings or “rare” and “common” values, it just takes into account an Integer which is the number of the animation. The problem many people have with this function is that the order of the animations is NOT the same as the order in the Model Viewer inbuilt into WE. This is because the WE viewer automatically re-arranges the animations into the “stand”, “walk”, “attack”, “death”, “decay”, “dissipate”, “morph” and “birth” order.
In order to determine which Index to use, you can use Warcraft 3 Viewer. Open the model in Warcraft 3 Viewer and open the Treeview Window (CTRL + H). In the Animation section you will see the various animations, the order in which they are in is the same as the Integer you would use.

This mostly: http://www.hiveworkshop.com/forums/triggers-scripts-269/play-specific-unit-animation-193240/

Adiktuz answered it.
 
Status
Not open for further replies.
Top