Skip to main content

build.scan_objects

Overview

  • List game objects placed in the current site with their entity IDs, table IDs, floor levels, and locations. Works in both play mode (character must be inside a building) and build mode. Use the entity_id with build.remove_object or any build.* customization command.

Metadata

FieldValue
DisplayScan Placed Objects
Categorybuild
AccessPublic
ScopeB1Standalone
TagsExperimental
Aliases

Parameters

NameTypeRequiredDefaultDescription
floor_levelintnoFilter by floor level (default: all floors)
deletable_onlyboolnoOnly include objects that can be removed (excludes dev-locked and non-deletable). Default: false
limitintnoMaximum number of objects to return in the JSON array. 0 means no limit. 'total' in the response always reflects the true match count.

Returns

  • Freeform result (shape is not fixed).

{ objects: [ { entity_id: int, table_id: string, floor_level: int, location: {x,y,z}, yaw: float, price: int, can_delete: bool } ], count: int, total: int } — object elements contain a nested location object.

Usage

await inzoi.cli.execute('build.scan_objects', {
floor_level: 0, // optional
deletable_only: false, // optional
limit: 0, // optional
});