Skip to main content

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

FieldValue
DisplayGet Site Info
Categorysite
AccessPublic
ScopeB2Authority
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
site_idnameno—Site id (default: the site the character is in)
entity_identityIdno—Character used when site_id is omitted (default: possessed)

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
site_idstringyesSite id; empty when the character is outside every site
site_typestringnoEB1SiteType name
centerobjectnoWorld center (cm)
center.xfloatyesX
center.yfloatyesY
center.zfloatyesZ
half_extentobjectnoHalf size along the site's own axes (cm)
half_extent.xfloatyesX
half_extent.yfloatyesY
half_extent.zfloatyesZ
posobjectnoCharacter world position (cm); only when site_id is omitted
pos.xfloatyesX
pos.yfloatyesY
pos.zfloatyesZ

Usage

await inzoi.cli.execute('site.get_info', {
site_id: '', // optional
entity_id: 0, // optional
});