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

RespawnTrait

const RespawnTrait: Trait<{ atTeamSpawn: boolean; clip: string; inPlace: boolean; point: () => Vector3; seconds: number; }>

An entity that comes back once its health runs out: after seconds, with full health, at point, or where it fell where inPlace, holding the clip named clip, if any, while it is down. A player’s character atTeamSpawn comes back on a point placed for the player’s team, picked as the character stands, where any is placed, so a switch moves its next respawn too; RespawnPlace.Spawn sets it. Without it, a player’s character stays down for the game to get up, and anything else is removed.