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

TriggerProps

Property Type Default value Description
onEnter? () => void undefined Fired the frame the first of the player’s own entities its targets name comes inside. Client behaviour, so a callback is allowed: it changes what this client shows.
onExit? () => void undefined Fired the frame the last of them leaves, stops being a target, or is destroyed.
radius? number 1 Metres from the entity within which a target’s body is inside.
targets? TargetFilter TargetKind.ControlledCharacters Who it meets: kinds and layers add, teams and rules narrow.