Skip to main content

entity.scan_objects

Overview

  • Scans nearby game objects (furniture, doors, fixtures, etc.) relative to camera/pawn direction. Positional arguments are radius, optional limit, then optional center_x/center_y/center_z; specify all three center coordinates together to scan around that world position.

Metadata

FieldValue
DisplayScan Objects
Categoryentity
AccessPublic
ScopeB1Standalone
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
radiusfloatno—Search radius in meters (default 100, max 1000)
limitintno—Max results (default 100, max 1000)
center_xfloatno—World X coordinate of the scan center; requires center_y and center_z
center_yfloatno—World Y coordinate of the scan center; requires center_x and center_z
center_zfloatno—World Z coordinate of the scan center; requires center_x and center_y
directionstringno—Direction filter: front/behind/left/right/all (default all)
conefloatno—Cone half-angle in degrees (default 90)
sortstringno—Sort by: distance/angle (default distance)
refstringno—Reference direction: camera/pawn (default camera)

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
refstringyesReference direction used (camera/pawn)
radiusfloatyesSearch radius in meters
countintyesNumber of objects returned
objectsarray<object>yesNearby game objects
objects[].entity_identityIdyesObject entity id
objects[].namestringyesObject name
objects[].floor_levelintyesFloor level
objects[].distancefloatyesDistance in meters
objects[].anglefloatyesSigned angle in degrees (-left/+right)
objects[].directionstringyesDirection label (front/behind/left/right)

Usage

await inzoi.cli.execute('entity.scan_objects', {
radius: 0.0, // optional
limit: 0, // optional
center_x: 0.0, // optional
center_y: 0.0, // optional
center_z: 0.0, // optional
direction: '', // optional
cone: 0.0, // optional
sort: '', // optional
ref: '', // optional
});