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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
entity |
Entity |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if (target && isRelevant(world, target)) lockOn(target);