SetUnitFacing

Parameters
whichUnitunit

Target unit.

facingAnglereal

Unit facing in degrees.

  • 0 = East
  • 90 = North
  • 180 = West
  • 270 = South
  • -90 = South (wraps around)
comment

Makes the unit slowly turn around on the spot to look at new direction.

To make the unit turn immediately, use BlzSetUnitFacingEx.

note

While the unit is moving, calling this function will have no effect. This also means that if called in a fast loop, some of the SetUnitFacing commands will be ignored and the turning won't look as you expect.

patch

1.00

Source
common.j (suggest an edit or discuss on Github)
return type
nothing
Source code
native          SetUnitFacing       takes unit whichUnit, real facingAngle returns nothing