Anvil
Loading...
Searching...
No Matches
Anvil.API.Events.ModuleEvents.OnPlayerEquipItem Class Referencesealed

Triggered when a NwCreature equips an NwItem. More...

+ Inheritance diagram for Anvil.API.Events.ModuleEvents.OnPlayerEquipItem:
+ Collaboration diagram for Anvil.API.Events.ModuleEvents.OnPlayerEquipItem:

Properties

NwItemItem = NWScript.GetPCItemLastEquipped().ToNwObject<NwItem>() [get]
 Gets the last equipped NwItem that triggered the event.
 
NwCreaturePlayer = NWScript.GetPCItemLastEquippedBy().ToNwObject<NwCreature>() [get]
 Gets the NwCreature that last equipped NwItem.
 
InventorySlot Slot = (InventorySlot)NWScript.GetPCItemLastEquippedSlot() [get]
 Gets the updated slot for the equipped item.
 
- Properties inherited from Anvil.API.Events.IEvent

Detailed Description

Triggered when a NwCreature equips an NwItem.

Property Documentation

◆ Item

NwItem? Anvil.API.Events.ModuleEvents.OnPlayerEquipItem.Item = NWScript.GetPCItemLastEquipped().ToNwObject<NwItem>()
get

Gets the last equipped NwItem that triggered the event.

Nullable because of an edge case where the item is invalid on logout while polymorphed. See https://github.com/Beamdog/nwn-issues/issues/464


The documentation for this class was generated from the following file: