• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Removing units movement speed

Status
Not open for further replies.

nailuj

N

nailuj

Hi

How do you remove a units movement in game?
Here are the requirements:
_The unit can originally move
_Then its movement speed needs to be set to 0 (i.e stuck on the spot)
_The unit must still be able to attack enemies that come to close.

I have tried giving the unit the slow aura (Tornado) but it doesn't slow the unit down enough. He can still move. Pausing the unit doesn't work either because the unit won't be able to counter attack. :)
 
There is action on the triggers "Unit - Set 'units' movement speed to 'x'"

You will also need to go to the gameplay constants and set the minimum movement speed to 0 (its default 150 and thats why you are having your problem).
 
just by the way...
if u set the units movespeed to "0" it cannot turn,blink ect but if u set it to "1" it can do all of those and still cannot move.(unit will still try to move)
 
Thanks guys

For those reading this, the first correct solution was given by MINI-ME. It works very well and requires very little triggering.

I am making a tech-wars/RISK type map where you can't swap out a unit from a control point. So I just might as well take away the unit's movement speed altogether. I don't need to check for each control point if the unit is running too far because (thanks MINI-ME) it can't move. Neat or what?
 
Status
Not open for further replies.
Back
Top