Skip to content

SetContainerPreset

Gives a container a loot preset and fills it from it now.

The chest is rolled from the preset at once (whoever has it open sees the new list) and again after every restock period once somebody touches it. An empty name takes the preset away: the contents stay as they are and nothing restocks. false for a preset the tables do not have.

SetContainerPreset(key, preset)
Parameter Type
key string the container’s level name
preset string the preset’s name, empty for none

boolean - false for an unknown preset

SetContainerPreset(ARMOURY, "inventory_zbrojnice_trosky") -- the armoury holds what the game's armoury holds

RestockContainer · RollLoot · GetContainerPreset · the Doors and containers group of the index