Skip to content

SetDoorState

Opens, closes, locks or unlocks a door on every client.

SetDoorState(key, open, locked)
Parameter Type
key string the door’s level name
open boolean open
locked boolean locked

nothing

SetDoorState(GATE, true, false) -- the gate opens for the round
SetTimer(function() SetDoorState(GATE, false, true) end, 30000)

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