Anvil
Anvil.API.Events.ModuleEvents.OnPlayerEquipItem Class Reference

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. More...
 
NwCreaturePlayer = NWScript.GetPCItemLastEquippedBy().ToNwObject<NwCreature>() [get]
 Gets the NwCreature that last equipped NwItem. More...
 
InventorySlot Slot = (InventorySlot)NWScript.GetPCItemLastEquippedSlot() [get]
 Gets the updated slot for the equipped item. More...
 
- Properties inherited from Anvil.API.Events.IEvent
NwObjectContext [get]
 

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

◆ Player

NwCreature? Anvil.API.Events.ModuleEvents.OnPlayerEquipItem.Player = NWScript.GetPCItemLastEquippedBy().ToNwObject<NwCreature>()
get

Gets the NwCreature that last equipped NwItem.

◆ Slot

InventorySlot Anvil.API.Events.ModuleEvents.OnPlayerEquipItem.Slot = (InventorySlot)NWScript.GetPCItemLastEquippedSlot()
get

Gets the updated slot for the equipped item.


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