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: GetFacingFromLocation | MoveToNewLocation
categories: Get Data from Creature Functions | Movement Functions


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