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

isRelevantTo

isRelevantTo(authority, entity, player): boolean

Whether player’s page holds entity, on the world that decides outcomes: once its whole value reached the player’s page and until it leaves the player’s view, as its visibility and, under interest culling, its distance decide. In a game played alone, while it lives. For a system that acts on what the player can see, and the tools. A page holds no authority, so it cannot ask: its own world is the answer.

Parameter Type
authority Authority
entity Entity
player PlayerEntity

boolean

if (isRelevantTo(step, boss, player)) emitEvent(step, BossTauntEvent, { line }, { to: player });