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

quick easy trigger question

Status
Not open for further replies.
Level 3
Joined
Jul 29, 2008
Messages
30
So I want to play units specific animations for cutscenes... How do I do so? I've seen the play units animation action but how do I link that to animations that have two words or a space in the title I couldn't seem to get that to work.


See? Real simple question. Thanks for the help in advance
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
If it don't work with f.ex. "spell slam" you could try f.ex. "slam" instead. It should work. If not you could use this:
  • Custom Script: call SetUnitAnimationByIndex(YOURUNIT, AN INTEGER)
and replace "YOURUNIT" with a variable and "AN INTEGER" with the integer number of your animation. If you don't know that number then you can test it with different numbers until you find it. The numbers are usually between 0 and 10 though units with many animations got up to 20. NOTE: There are different numbers for all units.
 
Level 5
Joined
Nov 14, 2007
Messages
161
in GUI there is also the
  • Animation - Play (UNIT)'s ANIMATION animation
where UNIT is any variable and ANIMATION is a string such as stand, slam, spell etc. i use the world editor, highlight the unit as if you were to place it on the map and on the left mini window there are two arrows that cycle through the animation names for that specific unit.

good luck
 
Status
Not open for further replies.
Top