PlayerSpawnRequestPayload
What playerSpawnRequest gets: the payload a handler receives.
Renamed in 0.28 from SpawnRequestPayload; see renamed names.
Definition
Section titled “Definition”type PlayerSpawnRequestPayload = { player: PlayerSnapshot; spawnKind: "initial" | "respawn"; position: Vector3; facingAngleRadians: number;};Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player. |
spawnKind |
"initial" | "respawn" |
The first spawn, or one after dying or being arrested. |
position |
Vector3 |
Where the server would spawn them. |
facingAngleRadians |
number |
The facing the server would use, in radians. |
Related
Section titled “Related”playerSpawnRequest: the decision