Table of Contents

Method HasLineOfSight

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

target NwGameObject

The 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.