vehicle.get_owned
Overview
- Reports which vehicle a Zoi owns and which one it is currently in. Those are separate facts and are reported separately: owned is what is registered to the Zoi and may be despawned in a garage, riding is the vehicle it is physically inside, which can be someone else's car. has_owned false with is_riding true is a passenger in another household's vehicle. All positions are RAW UNREAL WORLD CENTIMETRES, the same frame as automation.log_behaviour_trace's zoi_state.pos, so a distance between the two is a plain subtraction. This differs from entity.get_vehicle_info, which divides by 100 for console readability.
Metadata
| Field | Value |
|---|---|
| Display | Get Owned Vehicle |
| Category | vehicle |
| Access | Public |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | no | — | Character entity ID (default: possessed) |
Returns
- Freeform result (shape is not fixed).
{ entity_id, has_owned, is_riding, is_driver, owned{entity_id,vehicle_dt_id,vehicle_type,color_id,owner_entity_id,driver_entity_id,pos{x,y,z},rot_yaw,rot_pitch,rot_roll,speed,lane_index}, riding } - owned and riding are null when absent
Usage
await inzoi.cli.execute('vehicle.get_owned', {
entity_id: 0, // optional
});