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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
Authority |
entity |
Entity |
player |
PlayerEntity |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if (isRelevantTo(step, boss, player)) emitEvent(step, BossTauntEvent, { line }, { to: player });