• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Walk Animation {playing the walk animation on a dummy unit}

Status
Not open for further replies.
(This isn't my problem; it's a mates. He doesn't have a hive account)

Basically, he wants a dummy unit (footman model) that is a 'disguise' of another unit to use the walk animation when the normal guy walks. He knows how to do all the triggers, he's even done it all, but the footman doesn't walk - he just starts to walk, then just sticks. There seems to be no possible fix in sight, which is why he asked me to post here.

Thanks.
 
i am assuming he is moving the dummy unit via coordinates or by location points(do not recommend).

if you are moving the unit with x and y coordinates then you simply need to add an animation index script to it so it will play the animation every time it moves. index number is different for each unit and has to be trial and error.

Code:
Custom script:   call SetUnitAnimationByIndex(unit, index)
 
Erm also instead of Moving an unit with Move unit
if you move unit within two actions (SetUnitX and SetUnitY) it wont lose current animation
but SetUnitPosition resets the animation I guess
.....
 
Status
Not open for further replies.
Back
Top