Skip to content

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.

RestockContainer(key)
Parameter Type
key string the container’s level name

boolean - false when there is nothing to roll from

-- every opened chest refills at the round's end
for _, key in ipairs(GetContainers()) do RestockContainer(key) end

OnContainerRestock · SetContainerPreset · GetContainerInfo · the Doors and containers group of the index