Osiris/API/ItemSetOnlyOwnerCanUse: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
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 14: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