GetFacing

'''GetFacing(object) returns the the orientation of an object.

float GetFacing(object oTarget)

Parameters
object oTarget
 * The object of which to return the orientation of.

Description
This function returns the direction in which oTarget is facing, expressed as a float between 0.0f and 360.0f representing an angle. On any error it returns -1.0f

Remarks
Since version 1.62 the return value is rounded to the nearest whole number.

Version
1.30