SetPlayerInputEnabled()
Enable / Disable Player Input
Enable or disable player control input.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Enabled enabled | Explicit on/off state for the feature or response. | true |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await SetPlayerInputEnabled({"enabled": true})In use. Disable control during a carefully staged action and restore it on every exit path. Other locks, such as a running dialogue or cutscene, can still keep input unavailable after this action enables its own switch.
SetCharacterActionEnabled()#
Enable / Disable Character Action
Enable or disable a named interaction response on a character.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Character characterId | Choose a Character Designer ID; player is a runtime alias where supported. | Blank |
| Mouse / Trigger Action actionEvent | Choose the response/event to enable or disable. | Blank |
| Enabled enabled | Explicit on/off state for the feature or response. | true |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await SetCharacterActionEnabled({"characterId": "player", "actionEvent": "", "enabled": true})In use. Disable Talk for a character who is busy, then restore it later. The event/verb selection matters: disabling one response is different from hiding the NPC or turning off all interaction.
