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

Animaton tag problem

Status
Not open for further replies.
Level 1
Joined
May 5, 2012
Messages
4
I am a "noob" to world editing. So, my problem is that the model "RPG - Blue Knight" by Vermillion Edict that I have downloaded, have many animations. My problem is that I can't change the animation tag to one attack style. Like if I'm attaching a bow and the tag must be lumber. It still acts like it is swinging a sword. I have tried many times but it still using random animations. :vw_sad:
Again, I am new to editor and I don't know much about it.
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
I am a "noob" to world editing. So, my problem is that the model "RPG - Blue Knight" by Vermillion Edict that I have downloaded, have many animations. My problem is that I can't change the animation tag to one attack style. Like if I'm attaching a bow and the tag must be lumber. It still acts like it is swinging a sword. I have tried many times but it still using random animations. :vw_sad:
Again, I am new to editor and I don't know much about it.

  • Animation - Add the lumber animation tag to (Triggering unit)
maybe this ?

  • Untitled Trigger 001
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Your Unit
    • Actions
      • Animation - Add the lumber animation tag to (Triggering unit)
      • Animation - Play (Attacking unit)'s lumber animation
or just tinker with this

  • Set Unit = (Attacking Unit)
  • Custom script: call SetUnitAnimationByIndex(Unit, Integer)
just change the Integer to (1 or 2 or 3 or ..... or n) until you find the required animation
 
  • Set Unit = (Attacking Unit)
  • Custom script: call SetUnitAnimationByIndex(Unit, Integer)
just change the Integer to (1 or 2 or 3 or ..... or n) until you find the required animation

If Unit is a Variable created in World editor, and isn't a local or a custom global, then needs the udg_ before the name.

  • Set Unit = (Attacking Unit)
  • Custom script: call SetUnitAnimationByIndex(udg_Unit, Integer)
Also, animation index starts from 0.
 
Status
Not open for further replies.
Top