SetUnitX

Parameters
whichUnit unit
newX real
note

This does not cancel orders of the unit. SetUnitPosition does cancel orders.

note

If the unit has movementspeed of zero the unit will be moved but the model of the unit will not move.

return type
nothing
Source code
native SetUnitX takes unit whichUnit, real newX returns nothing
Source
unit.j
wc3modding.com
SetUnitX