Difference between revisions of "Osiris/API/ItemSetOwner"
From Divinity Engine Wiki
(Created page with "===== Full Definition(s) ===== * call '''ItemSetOwner'''(''(ITEMGUID)'''''_Item''', ''(CHARACTERGUID)'''''_NewOwner''') ===== Description ===== Changes the Owner of the item....") |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
* call '''ItemSetOwner'''(''(ITEMGUID)'''''_Item''', ''(CHARACTERGUID)'''''_NewOwner''') | * call '''ItemSetOwner'''(''(ITEMGUID)'''''_Item''', ''(CHARACTERGUID)'''''_NewOwner''') | ||
===== Description ===== | ===== Description ===== | ||
− | Changes the Owner of the item. If an item is added to a character's inventory, its Owner is set to that character, | + | Changes the Owner of the item. If an item is added to a character's inventory, its Owner is set to that character |
+ | ===== Notes ===== | ||
+ | * If a character dies and they are the owner of an item, the owner of that item is cleared. | ||
+ | * The Owner is not to be confused with the Original Owner, who is considered to be the 'rightful' owner of that item. If the Owner does not match the Original Owner, the item is considered stolen. | ||
===== See Also ===== | ===== See Also ===== | ||
*[[Osiris/API/ItemSetOnlyOwnerCanUse|ItemSetOnlyOwnerCanUse]] | *[[Osiris/API/ItemSetOnlyOwnerCanUse|ItemSetOnlyOwnerCanUse]] |
Latest revision as of 08:05, 5 April 2019
Full Definition(s)
- call ItemSetOwner((ITEMGUID)_Item, (CHARACTERGUID)_NewOwner)
Description
Changes the Owner of the item. If an item is added to a character's inventory, its Owner is set to that character
Notes
- If a character dies and they are the owner of an item, the owner of that item is cleared.
- The Owner is not to be confused with the Original Owner, who is considered to be the 'rightful' owner of that item. If the Owner does not match the Original Owner, the item is considered stolen.