Table of Contents

Class OnTrapSet

Namespace
Anvil.API.Events
Assembly
NWN.Anvil.dll

Called when a creature attempts to set a trap.

public sealed class OnTrapSet : IEvent
Inheritance
OnTrapSet
Implements
Inherited Members
Extension Methods

Properties

Creature

Gets the creature performing the trap action.

InRange

Gets if the creature is in range of the trap.

Result

Gets the result of this trap event. This value is only valid in the after event.

ResultOverride

Gets or sets a value to override the trap action result, skipping the default game behaviour.
Supported values: Complete, Failed.

TargetLocation

Gets the location where the trap will be set.

TargetObject

Gets the target object for the trap if the trap is set on a door/placeable.