GetFacingFromLocation
From NWN Lexicon
Jump to navigationJump to search
GetFacingFromLocation(location)
Get the facing value from a location variable.
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: |
author: John Shuell, editor: Jasperre, additional contributor(s): Lilac Soul, Jasperre