Difference between revisions of "UT RemoveItemFromInventory"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(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...')
 
m
 
Line 1: Line 1:
 
{{dafunction
 
{{dafunction
 
|name = UT_RemoveItemFromInventory
 
|name = UT_RemoveItemFromInventory
|brief = emoves an item from the Player's active inventory
+
|brief = Removes an item from the Player's active inventory
 
|param1type = resource
 
|param1type = resource
 
|param1name = rItem
 
|param1name = rItem

Latest revision as of 21:42, 10 February 2010

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.