Table of Contents

Method GetObjectsInShape

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

GetObjectsInShape(Shape, float, bool, ObjectTypes, Vector3)

Gets all objects in a shape at this location.

public IEnumerable<NwGameObject> GetObjectsInShape(Shape shape, float size, bool losCheck, ObjectTypes objTypes = ObjectTypes.Creature, Vector3 origin = default)

Parameters

shape Shape

The search shape to use.

size float

The size of the shape (e.g., radius for spheres).

losCheck bool

Whether to enforce line of sight.

objTypes ObjectTypes

Bitmask of object types to include.

origin Vector3

Optional origin offset for the shape.

Returns

IEnumerable<NwGameObject>

All matching objects found within the shape.