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

Called when NwCreature has closed a NwPlaceable.

OnConversation

Called when this placeable starts a conversation, or hears a message they are listening for.

OnDamaged

Called when NwGameObject has damaged NwPlaceable.

OnDeath

Called when NwCreature has destroyed NwPlaceable.

OnDisarm

Called when NwPlaceable has been disarmed.

OnDisturbed

Called when NwPlaceable inventory has been disturbed.

OnHeartbeat

Called every 6 seconds on NwPlaceable.

OnInventoryItemAdd
OnInventoryItemRemove
OnLeftClick

Called when NwPlaceable has been mousepad (left) clicked.

OnLock

Called when NwPlaceable has been locked.

OnOpen

Called when NwPlaceable has been opened.

OnPhysicalAttacked

Called when NwPlaceable has been physically attacked.

OnSpellCastAt

Called when Spell has been casted on NwPlaceable.

OnTrapTriggered

Called when NwPlaceable has a trap triggered.

OnUnlock

Called when NwPlaceable has been unlocked.

OnUsed

Called when NwPlaceable is being used.

OnUserDefined

Operators

implicit operator CNWSPlaceable?(NwPlaceable?)