wowpedia
Main Menu


Returns the direction the character is facing in radians.

facing = GetPlayerFacing()

Returns

facing
number - Direction the player is facing in radians, in the [0, 2π] range, where 0 is North and values increase counterclockwise.

Details

Patch changes

Legion Patch 7.1.0 (2016-10-25): Returns nil while in a restricted area (instance/battleground/arena).
Wrath-Logo-Small Patch 3.1.0 (2009-04-14): Added.