GetContainerLocked
A chest’s lock as the server keeps it.
Syntax
Section titled “Syntax”GetContainerLocked(key)| Parameter | Type | |
|---|---|---|
key |
string | the chest’s key, or "*" |
Returns
Section titled “Returns”boolean | nil - true locked, false unlocked; nil when the server keeps no lock for it (the level’s own rules it)
Example
Section titled “Example”if GetContainerLocked(ARMOURY) then print("the armoury is locked") endSee also
Section titled “See also”SetContainerLocked · the Doors and containers group of the index
