UT RemoveItemFromInventory

From Dragon Age Toolset Wiki
Jump to: navigation, search

Removes an item from the Player's active inventory

void UT_RemoveItemFromInventory(
resource rItem,
int nNumToRemove = 1,
object oInvOwner = OBJECT_INVALID,
string sTag = ""
);
Parameters:
rItem
resource of item to remove from inventory
nNumToRemove
Amount of this item to remove from inventory
oInvOwner
Override for applying function to object other than PC
sTag
[Undocumented]
Returns:

Nothing.

Source:

Core Resources.utility_h

Description

This function removes the given item from inventory by it's resource. If nNumToRemove is specified, it will remove that many items from inventory, or as many items as it can until no more exist in inventory.