RestockContainer
Rolls a container’s preset again now.
What players took comes back, what they put in is gone. false when the container has no preset (a chest filled by
SetContainerItems alone, or one the level gives no preset). The chat command /restock here | all | <key> does the same
for an admin.
Syntax
Section titled “Syntax”RestockContainer(key)| Parameter | Type | |
|---|---|---|
key |
string | the container’s level name |
Returns
Section titled “Returns”boolean - false when there is nothing to roll from
Example
Section titled “Example”-- every opened chest refills at the round's endfor _, key in ipairs(GetContainers()) do RestockContainer(key) endSee also
Section titled “See also”OnContainerRestock · SetContainerPreset · GetContainerInfo · the Doors and containers group of the index
