• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

unit movement speed manipulation

Status
Not open for further replies.
Level 9
Joined
Jan 14, 2008
Messages
366
if a unit has 0 movement speed by default, when attempting to add 315 to that units movement speed by trigger, the trigger seems to be ignored, and the unit still can not move at all.

is there a way to surpass this? or am i doing it wrong?

help me
 
Level 8
Joined
Aug 4, 2006
Messages
357
RedFlash is right. If a unit type has 0 move speed, it will never be able to move. EoW is also right about the min and max speeds; a unit's move speed must always be between the min and max values, unless it is 0.

So, oxxo, the solution is this:
1)Go to the object editor, and find your unit type. Change "Movement - Speed Base" to "1". A movespeed of 1 is so slow that the unit can basically not move.
2)Change "Movement - Speed Minimum" to "1".
3)Change "Movement - Speed Maximum" to "0" or "522". (0 would use the gameplay constant for max speed)
 
Level 7
Joined
Mar 24, 2008
Messages
184
RedFlash is right. If a unit type has 0 move speed, it will never be able to move. EoW is also right about the min and max speeds; a unit's move speed must always be between the min and max values, unless it is 0.

So, oxxo, the solution is this:
1)Go to the object editor, and find your unit type. Change "Movement - Speed Base" to "1". A movespeed of 1 is so slow that the unit can basically not move.
2)Change "Movement - Speed Minimum" to "1".
3)Change "Movement - Speed Maximum" to "0" or "522". (0 would use the gameplay constant for max speed)

or you can set the movement speed to 0 to the interested units via trigger at map initializazion or when they are created
 
Status
Not open for further replies.
Top