Table of Contents

Method GetObjectsInShapeByType

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

GetObjectsInShapeByType<T>(Shape, float, bool, Vector3)

Gets all objects in a shape at this location of the specified type.

public IEnumerable<T> GetObjectsInShapeByType<T>(Shape shape, float size, bool losCheck, Vector3 origin = default) where T : NwGameObject

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.

origin Vector3

Optional origin offset for the shape.

Returns

IEnumerable<T>

All matching objects of type T found within the shape.

Type Parameters

T

The game object type to return.