keylayer.set_enabled
Overview
- The player's key layer switches in the hidden UI launcher: without id, turns all active mod key layers on or off; with id, turns one active layer on or off (it keeps its stack position, and keys fall through to the layers below or the game). Not callable from mods. Switches reset when a layer is popped or the stack becomes empty.
Metadata
| Field | Value |
|---|---|
| Display | Toggle Mod Key Layers |
| Category | keylayer |
| Access | ScriptCheat |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| enabled | bool | yes | — | true = key layers active, false = keys go to the game |
| id | string | no | — | Active key layer id. Omit for all key layers |
Returns
- Return shape is not declared for this command.
Usage
await inzoi.cli.execute('keylayer.set_enabled', {
enabled: false,
id: '', // optional
});