Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

RespawnPointTrait

const RespawnPointTrait: Trait<{ facing: number | null; position: () => Vector3; scene: string; team: string | null; world: string; worldReset: number; }>

On a player: where the player’s character comes back, as setRespawnPoint writes it. position is where the character’s feet stand, facing radians about y or null to keep the character’s facing. team is the key of the player’s team at the write or null for every team. scene is the scene mounted at the write and world the id of the world held at the write, each “” for every one, and worldReset that world’s reset generation. The player’s own page reads it.