Home > Community Toolbox Reference > Array utilities > Basic operations
Pushes items from one array at the end of another array.
Argument | Type | Usage | Description |
---|---|---|---|
dest | Array |
Required | The destination array to push the items to. |
source | Array |
Required | The source array with the items to push. |
offset | Real |
Default: 0 |
The offset of the source array to start taking items from. |
length | Real |
Default: undefined |
The length of the source array subsection to push. |
N/A
The following code moves all items from the chest to the inventory.
array_push_ext(global.inventory, chest_content);
array_clear(chest_content);
- 24.6.0 - Created a function to push items from an array to another array.