Table of Contents

Class NwTrappable

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

A trappable game object/entity.

public abstract class NwTrappable : NwGameObject, IEquatable<NwObject>
Inheritance
NwTrappable
Implements
Derived
Inherited Members
Extension Methods

Properties

IsTrapFlagged

Gets a value indicating whether this trap has been flagged as visible to all creatures in the game.

IsTrapped

Gets a value indicating whether this object is trapped.

OneShotTrap

Gets or sets a value indicating whether this trap should not reset after firing (true = don't reset).

TrapActive

Gets or sets a value indicating whether this trap is an active trap. An inactive trap will not trigger when a creature steps on it. Setting a trap as inactive will not make the trap disappear if it has already been detected. Use TrapDetectable.

TrapBaseType

Gets the base type of this trap.

TrapCreator

Gets the player that created this trap. If the trap was placed in the toolset, this returns null.

TrapDetectDC

Gets or sets the skill DC required to detect this trap.

TrapDetectable

Gets or sets a value indicating whether this trap can be detected.

TrapDisarmDC

Gets or sets the skill DC required to disarm this trap.

TrapDisarmable

Gets or sets a value indicating whether this trap can be disarmed.

TrapKeyTag

Gets or sets the tag of the key that will disarm this trap.

TrapRecoverable

Gets or sets a value indicating whether this trap can be recovered.

Methods

DisableTrap()

Disables this trap as if a creature disarmed it (calling the OnDisarm event respectively).

GetLastDisarmedBy()

Gets the creature who last disarmed the trap on this object.

IsTrapDetectedBy(NwCreature)

Gets if the specified creature can see this trap.

SetTrapDetectedBy(bool, params NwCreature[])

Sets the detected state for this trap for the given creatures.