Table of Contents

Class NwEncounter

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

An encounter trigger that spawns creatures.

public sealed class NwEncounter : NwGameObject, IEquatable<NwObject>
Inheritance
NwEncounter
Implements
Inherited Members
Extension Methods

Properties

Active

Gets or sets a value indicating whether this encounter is spawned and active.

CanReset

Gets or sets if this encounter respawns or not.

CreatureList

Gets the list of creatures that can be spawned by this encounter.

Difficulty

Gets or sets the difficulty of this encounter.

Faction

Gets or sets the faction for this encounter.

IsValid

Gets a value indicating whether this is a valid object.

MaxSpawnedCreatures

Gets the maximum amount of creatures that this encounter will spawn.

MaxSpawns

Gets or sets the max amount of spawns this encounter can generate.

MinSpawnedCreatures

Gets the minimum amount of creatures that this encounter will spawn.

NumSpawnedCreatures

Gets the number of creatures that are spawned and alive.

PlayerTriggeredOnly

Gets or sets if this encounter is player triggered only.

ResetTime

Gets or sets the reset time of this encounter.

SpawnPointList

Gets the list of spawn points that creatures can spawn at from this encounter.

Spawns

Gets or sets the total amount of spawns this encounter has generated.

Methods

Clone(Location, string?, bool)

Creates a copy of this game object.

Create(string, Location, string?)
Deserialize(byte[])
Destroy()

Destroys this object (irrevocably).

GetObjectsInEncounterArea(ObjectTypes)

Gets all objects of the given types that are currently in this encounter trigger.

GetObjectsInEncounterArea<T>()

Gets all objects of the given type that are currently in this encounter trigger.

Serialize()

Events

OnEnter
OnExhausted
OnExit
OnHeartbeat
OnUserDefined

Operators

implicit operator CNWSEncounter?(NwEncounter?)