Unit.addContainer
Creates and stores a container in the given index inside the unit.
Kind: Function
Environments: Game
Game
unit:addContainer( index, size, stackSize )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
unit |
Unit | The unit. |
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. |