Table of Contents

Class NwPlaceable

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

A static world object that is optionally interactable or destroyable.

public sealed class NwPlaceable : NwStationary, IEquatable<NwObject>
Inheritance
NwPlaceable
Implements
Inherited Members
Extension Methods

Properties

Appearance

Gets or sets the appearance of this placeable.

DialogResRef

Gets or sets the dialog ResRef for this placeable.

HasInventory

Gets or sets a value indicating whether this placeable has an inventory.

Illumination

Gets or sets a value indicating whether this placeable should illuminate.

Inventory

Gets the inventory of this placeable.

IsBodyBag

Gets if this is a body bag placeable, spawned from a creature's death.

IsStatic
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.

Occupied
Rotation

Gets or sets the world rotation for this object.

SittingCreature

Methods

AcquireItem(NwItem, bool)
Clone(Location, string?, bool)

Creates a copy of this game object.

Create(string, Location, bool, string)
Deserialize(byte[])
GetBaseSavingThrow(SavingThrow)

Gets this placeable's base save value for the specified saving throw.

GiveItem(NwItem)

Moves the specified item/item stack to this placeable's inventory.

GiveItem(NwItem, int)

Moves a specified amount of items from an item stack to this placeable's inventory.

IsPlaceableActionPossible(PlaceableAction)

Determines whether the specified action can be performed on this placeable.

Serialize()
SetBaseSavingThrow(SavingThrow, sbyte)

Sets this placeable's base save value for the specified saving throw.

Events

OnClose

Triggered when NwCreature closes a NwPlaceable.

OnConversation

Triggered when this placeable starts a conversation or hears a listened-for message.

OnDamaged

Triggered when NwGameObject damages NwPlaceable.

OnDeath

Triggered when NwCreature destroys NwPlaceable.

OnDisarm

Triggered when NwPlaceable is disarmed.

OnDisturbed

Triggered when NwPlaceable inventory is disturbed.

OnHeartbeat

Triggered every 6 seconds for NwPlaceable.

OnInventoryItemAdd

Triggered when an item is added to an inventory of an item or placeable.

OnInventoryItemRemove

Triggered when an item is removed from an inventory of an item or placeable.

OnLeftClick

Triggered when NwPlaceable is left-clicked.

OnLock

Triggered when NwPlaceable is locked.

OnOpen

Triggered when NwPlaceable is opened.

OnPhysicalAttacked

Triggered when NwPlaceable is physically attacked.

OnSpellCastAt

Triggered when Spell is cast at NwPlaceable.

OnTrapTriggered

Triggered when a trap on NwPlaceable is triggered.

OnUnlock

Triggered when NwPlaceable is unlocked.

OnUsed

Triggered when NwPlaceable is used.

OnUserDefined

Triggered for a placeable when the associated Signal(NwPlaceable, int) method is called.

Operators

implicit operator CNWSPlaceable?(NwPlaceable?)