Pular para o conteúdo principal

Looking At A Position

An audience filter. Everything nested inside it is shown only while the player is looking at a given position — close enough, and within a given angle of their gaze.

Useful for showing something exactly when a player turns towards it: a name over a landmark, a hint on a machine, a prompt on a door.

Configuration

FieldWhat it does
targetThe position to look at.
maxAngleHow far off the centre of the screen it may be, in degrees.
maxDistanceHow far away the player may stand.
refreshTicksHow often the gaze is re-read.
invertedShow the children while the player is not looking instead.

refreshTicks trades responsiveness against cost: every tick is immediate and the most expensive, every four ticks is imperceptible in practice and four times cheaper.