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

    Parameters

    • whichUnit: Unit<UnitEventMap>

      Target unit.

    • facingAngle: number

      Unit facing in degrees.

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

    Returns void

    Note

    While the unit is moving, calling this function will have no effect.

Generated using TypeDoc