GetFacingFromLocation(location)

Get the facing value from a location variable.

float GetFacingFromLocation(
    location lLocation
);

Parameters

lLocation

The location to extract the facing 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 facing. This command retrieves just the facing value from a location variable.



Remarks

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


Known Bugs

Previously noted bugs have been fixed a while ago.


Version

1.62

See Also

functions: GetFacing | GetLocation | LocationToString
categories: Get Data from Object Functions | Math Functions | Movement Functions | Targeting Functions


 author: John Shuell, editor: Jasperre, additional contributor(s): Lilac Soul, Jasperre