🏆 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 - A unit is issued an order targeting a point
Conditions
Actions
If (All conditions are true) then do (Actions) else do (Actions)
If - Conditions
And - Conditions
(Issued Order) Equal to (order(smart))
(Unit-type of (Triggering unit)) Equal to X (place the unit-type you want to not move)
Here, place the condition you want Not Equal to X (this is defining the opposite of the condition you want to happen, for example if the unit you want to move must be a Hero, use the Boolean Comparison "((Triggering unit) is a Hero) Equal to False")
A unit will only be allowed to move if its movement speed is above 0. Why not set the unit's movement speed to 0 when you want it's movement to be disabled, and then reset it back to the default speed when you want the unit to be able to move again:
JASS:
native SetUnitMoveSpeed takes unit whichUnit, real newSpeed returns nothing
constant native GetUnitDefaultMoveSpeed takes unit whichUnit returns real
constant native GetUnitMoveSpeed takes unit whichUnit returns real
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.