UT AddItemToInventory
From Dragon Age Toolset Wiki
Revision as of 21:46, 10 February 2010 by BryanDerksen (Talk | contribs) (Created page with '{{dafunction |name = UT_AddItemToInventory |brief = Adds an item to the Player's active inventory |param1type = resource |param1name = rItem |param1desc = resource of item to add...')
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
);
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.