GetDoorState
A door’s state of record.
Syntax
Section titled “Syntax”GetDoorState(key)| Parameter | Type | |
|---|---|---|
key |
string | the door’s level name |
Returns
Section titled “Returns”boolean, boolean - two booleans open, locked; nil when nobody ever touched the door (the level’s default)
Example
Section titled “Example”local open, locked = GetDoorState(GATE)if open == nil then Log("the gate is as the level left it") endSee also
Section titled “See also”SetDoorState · GetDoors · OnPlayerUseDoor · the Doors and containers group of the index
