UT RemoveItemFromInventory

From Dragon Age Toolset Wiki
Revision as of 21:42, 10 February 2010 by BryanDerksen (Talk | contribs) (Created page with '{{dafunction |name = UT_RemoveItemFromInventory |brief = emoves an item from the Player's active inventory |param1type = resource |param1name = rItem |param1desc = resource of it...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

emoves 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.