IsFacing (Helpers.sc)¶
-
IsFacing(targetObj [lookerObj theAngle theDistance])¶ Determines if an object is facing another.
Parameters: - targetObj (heapPtr) – The object in question.
- lookerObj (heapPtr) – The object we are asking, or the ego if not specified.
- theAngle (number) – The angle the looker object is looking, or lookerObj:sightAngle if not supplied.
- theDistance (number) – An optional distance limit.