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

0 MS order Move

Status
Not open for further replies.
Level 3
Joined
Sep 24, 2007
Messages
64
What I think is an easy question with an easy answer

When making a sliding movement system, I want to be able to order the unit to move to a location while still keeping 0 movement speed so I can play the Walk animation while sliding.

I've seen this done in loads of maps, but how? :(
 
Level 6
Joined
Jul 22, 2008
Messages
243
Set it to 1; It won't make any difference; As it's such a low number. Also; Try increase the animation speed to make it look better.

Probably some other way to do it, but this should work.

EDIT:

NINJAD! ;)
 
Level 3
Joined
Sep 24, 2007
Messages
64
D:

I'm moving the unit with a trigger, every 0.01 seconds, and everytime the unit is moved the "natural" walk animation is interrupted. THe only way is using 0 movement speed and use animation commands to play the walk animation, but then the unit cannot be ordered to walk which I want.

Or I'm not following? :s

This doesn't work D:
 
Level 6
Joined
Jul 22, 2008
Messages
243
Do the same thing you do with 0 move speed (Animation triggers) but with 1 move speed
 
Level 12
Joined
Mar 26, 2005
Messages
790
Or use that magic custom script

call SetUnitAnimationByIndex(udg_tempUnit, 2)

of course, the number will be different, it depends on the model, try 0 to 10, and one will be fine

and before that script, save unit to variable like tempUnit
 
Status
Not open for further replies.
Top