Difference between revisions of "Osiris/API/ItemToInventory"
From Divinity Engine Wiki
(Documented change in patch 5) |
m |
||
Line 12: | Line 12: | ||
* Helper [[Osiris/Shared/DB_GiveItemToEvent|DB_GiveItemToEvent]] | * Helper [[Osiris/Shared/DB_GiveItemToEvent|DB_GiveItemToEvent]] | ||
− | [[Category:Osiris Calls]] | + | [[Category:Osiris Calls|ItemToInventory]] |
Revision as of 16:22, 19 December 2017
Full Definition(s)
- (Shared mod) call ItemToInventory((ITEMGUID)_Item, (GUIDSTRING)_TargetObject, (INTEGER)_Amount)
- call ItemToInventory((ITEMGUID)_Item, (GUIDSTRING)_TargetObject, (INTEGER)_Amount, (INTEGER)_ClearOriginalOwner)
Description
Transfers _Amount instances of _Item to _TargetObject. _TargetObject can either be a character or a container object. This item, or stack of items, must already exist in the game world. You cannot specify a root template as _Item (use ItemTemplateAddTo instead in that case).
(New parameter in DOS2 Patch 5) If _ClearOriginalOwner is 1, then the original owner of the item will be reset and hence the item will never be considered to be stolen. If it is 0, then the original owner (if any) will remain set.
Notes
- /