Method ActionUseItem
ActionUseItem(NwItem, ItemProperty, Location, bool, int)
Instructs this creature to use the specified item property of an item in their inventory.
public Task ActionUseItem(NwItem item, ItemProperty itemProperty, Location location, bool decrementCharges = true, int subPropertyIndex = 0)
Parameters
itemNwItemThe item to use.
itemPropertyItemPropertyThe item property on the item to use.
locationLocationThe target location for the item property action.
decrementChargesboolIf true, decrements item charges as configured for the item property action.
subPropertyIndexintSpecifies the index to use if this item has sub-properties (such as sub-radial spells).
Returns
ActionUseItem(NwItem, ItemProperty, NwGameObject, bool, int)
Instructs this creature to use the specified item property of an item in their inventory.
public Task ActionUseItem(NwItem item, ItemProperty itemProperty, NwGameObject gameObject, bool decrementCharges = true, int subPropertyIndex = 0)
Parameters
itemNwItemThe item to use.
itemPropertyItemPropertyThe item property on the item to use.
gameObjectNwGameObjectThe target object for the item property action.
decrementChargesboolIf true, decrements item charges as configured for the item property action.
subPropertyIndexintSpecifies the index to use if this item has sub-properties (such as sub-radial spells).