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

isRelevant

isRelevant(world, entity): boolean

Whether world holds entity for its game to read: on a page, true while the stream holds it, and false for one the room removed that stands a moment longer for the readers of an event that names it; an entity the page made itself while it lives. On the room’s world and in a game played alone, true for every living entity. For a handle kept across frames, in code the room and the page share.

Parameter Type
world World
entity Entity

boolean

if (target && isRelevant(world, target)) lockOn(target);