site.get_info
Overview
- Returns a site's type, world center and half extent in raw Unreal centimetres. Site coordinates are not in any data table, so use this to measure distances between sites. Without site_id it reports the site the character (default: possessed) is standing in, and returns an empty site_id instead of failing when it is outside every site, so it can be polled for arrival checks; in that mode it also returns the character's world position (pos). Only loaded sites of the current city are found.
Metadata
| Field | Value |
|---|---|
| Display | Get Site Info |
| Category | site |
| Access | Public |
| Scope | B2Authority |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| site_id | name | no | — | Site id (default: the site the character is in) |
| entity_id | entityId | no | — | Character used when site_id is omitted (default: possessed) |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
site_id | string | yes | Site id; empty when the character is outside every site |
site_type | string | no | EB1SiteType name |
center | object | no | World center (cm) |
center.x | float | yes | X |
center.y | float | yes | Y |
center.z | float | yes | Z |
half_extent | object | no | Half size along the site's own axes (cm) |
half_extent.x | float | yes | X |
half_extent.y | float | yes | Y |
half_extent.z | float | yes | Z |
pos | object | no | Character world position (cm); only when site_id is omitted |
pos.x | float | yes | X |
pos.y | float | yes | Y |
pos.z | float | yes | Z |
Usage
await inzoi.cli.execute('site.get_info', {
site_id: '', // optional
entity_id: 0, // optional
});