Inventory
Parent |
A actor component that can hold multiple item stacks. WARNING! Be aware of container inventories, and never open their UI, otherwise these function will not work as expected.
Functions
canSplitAtIndex (index : Int) → canSplit : Bool
Returns true if the item stack at the given index can be split.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Can Split at Index |
| Name | Type | Description |
|---|---|---|
Index |
Int |
The slot index of which you want to check if the stack can be split. |
| Name | Type | Description |
|---|---|---|
Can Split |
Bool |
True if the stack at the given index can be split. |
flush ()
Removes all discardable items from the inventory completely. They will be gone! No way to get them back!
Details
Flags |
RuntimeSync MemberFunc |
Display Name |
Flush |
getStack (…)
Returns the item stack at the given index. Takes integers as input and returns the corresponding stacks.
Details
Flags |
VarArgs RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Stack |
sort ()
Sorts the whole inventory. (like the middle mouse click into a inventory)
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Sort |
splitAtIndex (index : Int, num : Int)
Tries to split the stack at the given index and puts the given amount of items into a free slot.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Split At Index |
| Name | Type | Description |
|---|---|---|
Index |
Int |
The index of the stack you want to split. |
Num |
Int |
The number of items you want to split off the stack at the given index. |
swapStacks (index1 : Int, index2 : Int) → successful : Bool
Swaps two given stacks inside the inventory.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Swap Stacks |
| Name | Type | Description |
|---|---|---|
Index 1 |
Int |
The index of the first stack in the inventory. |
Index 2 |
Int |
The index of the second stack in the inventory. |
| Name | Type | Description |
|---|---|---|
Successful |
Bool |
True if the swap was successful. |