GetFacingFromLocation

GetFacingFromLocation(location) returns component that represents the orientation from a location variable.

float GetFacingFromLocation(   location lLocation );

Parameters
location lLocation
 * The location to extract the orientation from.

Description
Returns the orientation value from a location variable. A location has three components: the object ID of the area, a vector representing the position within that area, and a floating point number representing the orientation in degrees.

Remarks
From version 1.62+, this now rounds the value to the nearest degree.

Version
1.62