UT AddItemToInventory

From Dragon Age Toolset Wiki
Jump to: navigation, search

Adds an item to the Player's active inventory

object UT_AddItemToInventory(
resource rItem,
int nNumToAdd = 1,
object oInvOwner = OBJECT_INVALID,
string sTag = "",
int bSuppressNote = FALSE,
int bDroppable = TRUE
);
Parameters:
rItem
resource of item to add to inventory
nNumToAdd
Amount of this item to add to inventory
oInvOwner
override for applying the finction to object other than PC
sTag
[Undocumented]
bSuppressNote
[Undocumented]
bDroppable
[Undocumented]
Returns:

[Undocumented]

Source:

Core Resources.utility_h

Description

This fucntion adds the given item from inventory by it's resource. If nNumToAdd is specified, it will add that many items to inventory.