Skip to content

GetDoorState

A door’s state of record.

GetDoorState(key)
Parameter Type
key string the door’s level name

boolean, boolean - two booleans open, locked; nil when nobody ever touched the door (the level’s default)

local open, locked = GetDoorState(GATE)
if open == nil then Log("the gate is as the level left it") end

SetDoorState · GetDoors · OnPlayerUseDoor · the Doors and containers group of the index