is_active
read-only$layers.is_active(layer: int) -> boolReturns true if a given layer is active.
| Parameter | Type | Meaning |
|---|---|---|
layer | int | Layer to check, from vgame_layers_t. |
Returns bool: True if the layer is active.
2 natives. Read-only natives only look things up; the rest change something. Parameter types use the language's names (Types).
$layers.is_active(layer: int) -> boolReturns true if a given layer is active.
| Parameter | Type | Meaning |
|---|---|---|
layer | int | Layer to check, from vgame_layers_t. |
Returns bool: True if the layer is active.
$layers.set_active(layer: int, active: bool)Set a layer as active or inactive.
| Parameter | Type | Meaning |
|---|---|---|
layer | int | Layer to set, from vgame_layers_t. |
active | bool | Whether the layer should be set to active or inactive. |