Beta Documentation - Subject to change.
Function to handle moving or swapping an item in our inventory. This DOES NOT handle dragging items from any of the character banks or housing hooks. For that functionality please use "PerformShortcutDrop.".
Syntax
Lua |
---|
function Backpack:PerformItemDrop(item, destinationIndex, split);
|
Parameters
- item
-
Type:
Item
The LuaItem representing the item you are trying to move
- destinationIndex
-
Type:
number
The index into the backpack where you are trying to place the item
- split
-
Type:
boolean
Whether or not we want to split the item's stack while dragging it
Remarks
See Also