Method HasLineOfSight
HasLineOfSight(NwGameObject)
Gets whether this object has a direct line of sight to the specified object (not blocked by any geometry).
public bool HasLineOfSight(NwGameObject target)
Parameters
targetNwGameObjectThe target object to perform the line of sight check against.
Returns
- bool
true if this object has line of sight on the target, otherwise false.
Remarks
Warning
This is an expensive function and may degrade performance if used frequently.