Beta Documentation - Subject to change.
Function to handle dropping any kind of item into the backpack. If the item is already in the backpack or is coming from a housing hook, it will perform a swap with anything at the destination index.
Syntax
Lua |
---|
function Backpack:PerformShortcutDrop(shortcut, destinationIndex, split);
|
Parameters
- shortcut
-
Type:
Shortcut
The LuaShortcut containing the item info needed for handling drag and drop. This MUST be generated by a valid drag and drop message or moving things from the vaults and housing hooks will generate errors!
- destinationIndex
-
Type:
number
The index into the backpack where you are trying to drop the item
- split
-
Type:
boolean
Whether or not we want to split the item's stack while dragging it
Remarks
See Also