Interactable.addContainer

Creates and stores a container in the given index inside the controller

Kind: Function

Environments: Game

Game

interactable:addContainer( index, size, stackSize )

Open the full Game reference

Availability: Server only

Parameters:

Name Type Description
interactable Interactable The interactable.
index integer The index of the container [0-15].
size integer The number of slots in the container.
stackSize (optional) integer The stack size. Defaults to maximum possible stack size(65535).

Returns:

Type Description
Container The created container.