• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[JASS] SetUnitMovespeed

Status
Not open for further replies.
I had an issue with the GUI version of this function. If I did for example "Set movement speed to (200 + 30)" it didn't work for me, yet if I do "Set x = 200 + 30" and then "Set movement speed to x" it works fine.

The two do exactly the same thing, there mist have been something else that changed the outcome.
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
In gameplay constants, there is a field for minimum unit speed and maximum unit speed.
The maximum is capped at 522 and the minimum is (downwards)capped at 0.
When you set a unit's movement speed using this function, you will set it to the minimum if the given value is lower than that.

So if the value in gameplay constants is 0, you can set the movement speed to 0 (which also removes the buttons in the UI).
 
Status
Not open for further replies.
Top