Skip to content

GetDoors

Every door anyone touched.

A door nobody used is at the level’s default and not listed; the level lists have every door’s key.

GetDoors()

table - a list of door keys

for _, key in ipairs(GetDoors()) do
local open, locked = GetDoorState(key)
if open then SetDoorState(key, false, false) end -- curfew: every door shut
end

GetDoorState · SetDoorState · the Doors and containers group of the index