Difference between revisions of "GetFacing"

From NWN Lexicon
Jump to: navigation, search
Line 8: Line 8:
  
 
<nwscript>
 
<nwscript>
[[float | float ]] GetFacing(
+
float GetFacing(
    [[object | object ]] oTarget
+
    object oTarget
);
+
);
 
</nwscript>
 
</nwscript>
  

Revision as of 01:26, 26 August 2012



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