VehicleDamagedPayload
The current state and source of a vehicle health or damage-condition change.
Definition
Section titled “Definition”type VehicleDamagedPayload = Readonly<{ vehicleId: number; state: VehicleStateSnapshot; changeSource: "game" | "script" | "repair"; observedAtSessionMs: number;}>;Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
vehicleId |
number |
The vehicle’s network ID. |
state |
VehicleStateSnapshot |
The current shared state and condition. |
changeSource |
"game" | "script" | "repair" |
Damage from the game, a script setter, or repair. |
observedAtSessionMs |
number |
When the change was observed on the shared session clock. |