automation.set_door_privilege
Overview
- Lets a character pass every door permission check, as automation needs to reach interiors it does not own.
Metadata
| Field | Value |
|---|---|
| Display | Set Test Door Privilege |
| Category | automation |
| Access | UserCheat |
| Scope | B2Authority |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | yes | — | Target character entity ID (required) |
| enabled | bool | no | — | true grants the privilege, false revokes it (default: true) |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
entity_id | int | yes | The character the privilege was applied to |
enabled | bool | yes | Whether the privilege is now held |
Usage
await inzoi.cli.execute('automation.set_door_privilege', {
entity_id: 0,
enabled: false, // optional
});