SpectateTarget
Who or what players.spectate has a player watch: a player, through deaths,
respawns and vehicle changes, or a vehicle, whoever is in it.
Definition
Section titled “Definition”type SpectateTarget = { kind: "player"; player: PlayerTarget } | { kind: "vehicle"; vehicleId: number };Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
kind |
"player" | "vehicle" |
A player or a vehicle. |
player |
PlayerTarget |
With "player": the player. A player who has left is their ID. |
vehicleId |
number |
With "vehicle": the vehicle. |