Skip to main content

build.scan_floors

Overview

  • List all floors and rooms in the current site with room indices and positions. Works in both play mode (character must be inside a building) and build mode. Use room_index with build.set_floor_color / build.set_floor_material.

Metadata

FieldValue
DisplayScan Floors
Categorybuild
AccessPublic
ScopeB1Standalone
TagsExperimental
Aliases

Parameters

NameTypeRequiredDefaultDescription
floor_levelintnoFilter by floor level (default: all floors)

Returns

  • Freeform result (shape is not fixed).

{ floors: [ { floor_level: int, rooms: [ { room_index: int, node_count: int, first_node: {x,y}, center: {x,y} } ] } ], total_rooms: int } — floors nests a rooms array whose elements contain nested position objects.

Usage

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