Skip to main content

build.scan_walls

Overview

  • List all walls in the current site with edge keys and positions. Works in both play mode (character must be inside a building) and build mode. Use the edge_key with build.set_wall_color.

Metadata

FieldValue
DisplayScan Walls
Categorybuild
AccessPublic
ScopeB1Standalone
TagsExperimental
Aliases

Parameters

NameTypeRequiredDefaultDescription
floor_levelintnoFilter by floor level (default: all floors)

Returns

  • Freeform result (shape is not fixed).

{ walls: [ { edge_key: int, floor_level: int, left: {x,y}, right: {x,y} } ], count: int } — wall elements contain nested left/right position objects.

Usage

await inzoi.cli.execute('build.scan_walls', {
floor_level: 0, // optional
});