Lua Unit IsFacing

Parameters

 * (targetObject, maxDegree) or (targetPosition, maxDegree) or (x, y, z, maxDegree)


 * targetObject
 * Target LuaGenericObject to check against.


 * targetPosition
 * Pointer to a position vector to check against.


 * maxDegree
 * Maximum degrees (defaults to 30).


 * x
 * X value of a position as a float.


 * y
 * Y value of a position as a float.


 * z
 * Z value of a position as a float.

Details

 * type
 * boolean


 * state
 * True if the unit is facing the provided position/unit.