API:PickupBagItem

Places an item from the bag slot referenced by by inventoryIndex into the cursor, and places the current cursor item into the same bag slot.

Arguments

 * inventoryIndex
 * number - The inventoryIndex number of the item to be used.

Returns

 * none

Example
Swaps the first and second bag slots in Backpack I:

Related Functions

 * GetBagCount
 * GetBagItemCooldown
 * GetBagItemLink
 * GetBagItemInfo
 * SplitBagItem
 * UseBagItem
 * UseItemByName