CantBeSeen (Sight.sc)

CantBeSeen(theSight [optSeer fieldAngle fieldDistance])

Determines if an object can’t be seen by another.

Parameters:
  • theSight (heapPtr) – The object in question.
  • optSeer (heapPtr) – The object we are asking, or the ego if not specified.
  • fieldAngle (number) – The angle the looker object is looking, or lookerObj:sightAngle if not supplied.
  • fieldDistance (number) – An optional distance limit.
Returns:

TRUE if the seer cannot see the sight, FALSE otherwise. FALSE if the sight is the seer.