building.set_light_cast_shadow
Overview
- [Build Mode Only] Turns shadow casting on or off for a placed light object, through the build undo/redo stack. Enabling shadows on many lights is expensive at runtime. Requires phase == 'ready' (see build.get_mode_state).
Metadata
| Field | Value |
|---|---|
| Display | Set Light Cast Shadow |
| Category | building |
| Access | ScriptCheat |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | yes | — | Target light object entity ID (from build.scan_objects) |
| enable | bool | yes | — | true to cast shadows, false to disable |
Usage
await inzoi.cli.execute('building.set_light_cast_shadow', {
entity_id: 0,
enable: false,
});