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

RespawnTrait

const RespawnTrait: Trait<{ 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. Without it, a player’s character stays down for the game to get up, and anything else is removed.