Unit.getContainer

Returns the container stored in the given index inside the unit.

Kind: Function

Environments: Game

Game

unit:getContainer( index )

Open the full Game reference

Parameters:

Name Type Description
unit Unit The unit.
index (optional) integer The index of the container (default: 0).

Returns:

Type Description
Container The container.