Class NwDoor
A tile-based door.
public sealed class NwDoor : NwStationary, IEquatable<NwObject>
- Inheritance
-
NwDoor
- Implements
- Inherited Members
- Extension Methods
Properties
- DialogResRef
Gets or sets the dialog ResRef for this door.
- DoorOpenState
Gets or sets the open state for this door.
- IsValid
Gets a value indicating whether this is a valid object.
- KeyAutoRemoved
Gets or sets a value indicating whether the key for this lock should "break"/be removed from the creature's inventory when used on this lock.
Methods
- Clone(Location, string?, bool)
Creates a copy of this game object.
- Close()
Closes this door.
- Create(string, Location, string?)
Creates a door at the specified location.
- GetBaseSavingThrow(SavingThrow)
Gets this door's base save value for the specified saving throw.
- IsDoorActionPossible(DoorAction)
Determines whether the specified action can be performed on this door.
- Open()
Opens this door.
- SetBaseSavingThrow(SavingThrow, sbyte)
Sets this door's base save value for the specified saving throw.
Events
- OnAreaTransitionClick
Triggered when a player clicks a door used for an area transition.
- OnClose
Triggered when the door closes.
- OnConversation
Triggered when the door starts dialogue, or hears a listen pattern.
- OnDamaged
Triggered when the door takes damage.
- OnDeath
Triggered when the door is destroyed.
- OnDisarm
Triggered when a trap on the door is disarmed.
- OnDoorSetOpenState
Triggered when a door's open state is changed (open/closed/destroyed).
- OnFailToOpen
Triggered when an attempt to open the door fails (e.g., door is locked).
- OnHeartbeat
Triggered at a regular interval for the door.
- OnLock
Triggered when the door is locked.
- OnOpen
Triggered when the door opens.
- OnPhysicalAttacked
Triggered when the door is physically attacked by a creature.
- OnSpellCastAt
Triggered when a spell is cast at the door.
- OnTrapTriggered
Triggered when a trap attached to the door is triggered.
- OnUnlock
Triggered when the door is unlocked.
- OnUserDefined
Triggered for a door when the associated Signal(NwDoor, int) method is called.