Skip to content

PlayerSpawnRequestPayload

What playerSpawnRequest gets: the payload a handler receives.

Renamed in 0.28 from SpawnRequestPayload; see renamed names.

type PlayerSpawnRequestPayload = {
player: PlayerSnapshot;
spawnKind: "initial" | "respawn";
position: Vector3;
facingAngleRadians: number;
};
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.