Interactable.getContainer
Returns the container stored in the given index inside the controller
Kind: Function
Environments: Game
Game
interactable:getContainer( index )
Parameters:
| Name | Type | Description |
|---|---|---|
interactable |
Interactable | The interactable. |
index (optional) |
integer | The index of the container (default: 0). |
Returns:
| Type | Description |
|---|---|
| Container | The container. |