Difference between revisions of "Osiris/API/GetInventoryOwner"

From Divinity Engine Wiki
Jump to: navigation, search
(Osiris Core APIs)
 
m
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
* This call returns the outermost container. I.e., if a character has crate in their inventory, and the crate contains a pouch with the item, this call will return the character.
 
* This call returns the outermost container. I.e., if a character has crate in their inventory, and the crate contains a pouch with the item, this call will return the character.
 
===== See Also =====
 
===== See Also =====
* [[Osiris/API/ItemIsInInventory]]
+
* [[Osiris/API/ItemIsInInventory|ItemIsInInventory]]
 
   
 
   
[[Category:Osiris Queries]]
+
[[Category:Osiris Queries|GetInventoryOwner]]

Latest revision as of 16:30, 19 December 2017

Full Definition(s)
  • query GetInventoryOwner([in](ITEMGUID)_Item, [out](GUIDSTRING)_Owner)
Description

Returns the inventory/container that holds _Item in _Owner.

Return Values
  • Success/Failure: Fails if _Item is not in anyone's inventory nor in a container.
  • _Owner: The character or item in whose inventory the item currently resides.
Notes
  • This call returns the outermost container. I.e., if a character has crate in their inventory, and the crate contains a pouch with the item, this call will return the character.
See Also