VehicleStateUpdate
A partial update for vehicles.setState. Fields left out stay as they are. The
sirens field is included in snapshots and can be set here; vehicles.setSiren
remains available.
Definition
Section titled “Definition”type VehicleStateUpdate = Partial<Omit<VehicleStateSnapshot, "vehicleId" | "condition">> & { condition?: Partial<VehicleCondition>;};Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
isEngineOn |
boolean |
Target engine state. |
headlights |
VehicleHeadlightMode |
Target headlight mode. |
windows |
Partial<Record<VehicleWindowName, boolean>> |
Open or close selected supported windows. |
doors |
Partial<Record<VehicleDoorName, boolean>> |
Open or close selected supported passenger doors. |
isHoodOpen, isTrunkOpen |
boolean |
Open or close the supported hood or trunk. |
isLocked |
boolean |
Lock or unlock the doors. |
isSirenOn |
boolean |
Set the siren or alarm on or off. |
condition |
Partial<VehicleCondition> |
Set health or selected supported damage fields. |
The former engineOn, hoodOpen, trunkOpen, locked and sirenOn update fields remain accepted for this minor
version and warn once. Use the is… field names above.