Difference between revisions of "Osiris/API/ItemIsInInventory"

From Divinity Engine Wiki
Jump to: navigation, search
m
Line 7: Line 7:
 
* '''_Bool''': 0 if '''_Item''' is not in an inventory (as defined above), 1 if it is.
 
* '''_Bool''': 0 if '''_Item''' is not in an inventory (as defined above), 1 if it is.
 
===== Notes =====
 
===== Notes =====
* /
+
* Unlike [[Osiris/API/GetInventoryOwner|GetInventoryOwner]], this call does not recurse into nested containers.
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/GetInventoryOwner|GetInventoryOwner]]
 
* [[Osiris/API/GetInventoryOwner|GetInventoryOwner]]

Revision as of 17:15, 22 February 2018

Full Definition(s)
  • query ItemIsInInventory([in](ITEMGUID)_Item, [out](INTEGER)_Bool)
Description

Returns whether _Item is in an inventory. This includes both character and container inventories.

Return Values
  • Success/Failure: Default return value.
  • _Bool: 0 if _Item is not in an inventory (as defined above), 1 if it is.
Notes
See Also