Table of Contents

Class OnTrapSet

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

Triggered 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 whether 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

Set to Complete or Failed to override the trap action result and skip default game behavior.

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.