GetFacing

From NWN Lexicon
Revision as of 01:26, 26 August 2012 by Dood (talk | contribs)
Jump to: navigation, search



GetFacing(object)

Used to determine which direction something is facing.

float GetFacing(
    object oTarget
);

Parameters

oTarget

The object to return the facing value of.


Description

Returns a float between 0.0 and 360.0 that determines which direction oTarget is facing.
Returns -1.0 on error.



Remarks

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


Version

1.30

See Also

functions: 

MoveToNewLocation



 author: Charles Feduke, editor: Jasperre, additional contributor(s): Morz, Keith Voss, Lilac Soul