public UseItemResult InventoryControlWrapper.UseItem(int localId, bool actuallyUse = true)
Uses item using the supplied arguments.
UseItemResultNamed values for use item result. Select a value when an API accepts or returns UseItemResult.
Parameters
localId- Parameter type:
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.The item's identifier within its owning inventory; do not substitute a grid position.
actuallyUse- Parameter type:
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.
Returns: The UseItemResult result.