GetLevelLayer
A layer as this server switched it.
true or false for a layer the server switched; nil for one it never touched - it stands as the level has it, which
the server does not know.
Syntax
Section titled “Syntax”GetLevelLayer(name)| Parameter | Type | |
|---|---|---|
name |
string | the layer’s full name, with its GUID |
Returns
Section titled “Returns”boolean - on or off; nil when never switched
Example
Section titled “Example”if GetLevelLayer("gate_open_a12b1f05-20f2-4d96-825c-57aea7eec798") then SendClientMessage(pid, COLOR_YELLOW, "The courtyard gate stands open.")endSee also
Section titled “See also”SetLevelLayer · GetLevelLayers · the Level layers group of the index
