VehicleControlChangedPayload
The current state and source of a shared vehicle control change.
Definition
Section titled “Definition”type VehicleControlChangedPayload = Readonly<{ vehicleId: number; state: VehicleStateSnapshot; changeSource: "player" | "game" | "script"; observedAtSessionMs: number;}>;Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
vehicleId |
number |
The vehicle’s network ID. |
state |
VehicleStateSnapshot |
The current shared state. |
changeSource |
"player" | "game" | "script" |
An accepted player input, the game’s behavior, or a script setter. |
observedAtSessionMs |
number |
When the change was observed on the shared session clock. |