Difference between revisions of "Osiris/API/ItemSetOnlyOwnerCanUse"

From Divinity Engine Wiki
Jump to: navigation, search
 
Line 2: Line 2:
 
* call '''ItemSetOnlyOwnerCanUse'''(''(ITEMGUID)'''''_Item''', ''(INTEGER)'''''_bool''')
 
* call '''ItemSetOnlyOwnerCanUse'''(''(ITEMGUID)'''''_Item''', ''(INTEGER)'''''_bool''')
 
===== Description =====
 
===== Description =====
If '''_bool''' is '''1''', the item can only be used by its owner after this call. Otherwise, it can be used by anyone.
+
If '''_bool''' is '''1''', the item can only be used by its owner after this call. Otherwise, it can be used by anyone. The Owner of an item is the last character to have it in their inventory.
 
===== See Also =====
 
===== See Also =====
 
*[[Osiris/API/CharacterUsedItemFailed|CharacterUsedItemFailed]]
 
*[[Osiris/API/CharacterUsedItemFailed|CharacterUsedItemFailed]]
 
*[[Osiris/API/ItemSetOwner|ItemSetOwner]]
 
*[[Osiris/API/ItemSetOwner|ItemSetOwner]]
 +
*[[Osiris/API/ItemSetOriginalOwner|ItemSetOriginalOwner]]
  
 
[[Category:Osiris Calls|ItemSetOnlyOwnerCanUse]]
 
[[Category:Osiris Calls|ItemSetOnlyOwnerCanUse]]

Latest revision as of 15:36, 19 December 2017

Full Definition(s)
  • call ItemSetOnlyOwnerCanUse((ITEMGUID)_Item, (INTEGER)_bool)
Description

If _bool is 1, the item can only be used by its owner after this call. Otherwise, it can be used by anyone. The Owner of an item is the last character to have it in their inventory.

See Also