UI Look Audience
Looking At A Position
Everyone looking at a place, from close enough. Reprend betterhud_look_audience sans BetterHud : ce qui déclenchait une pop-up est ici une audience ordinaire, donc n'importe quoi peut s'y accrocher — un dialogue, un HUD, un objectif. Séparer le déclencheur de ce qu'il affiche est ce qui rend la brique réutilisable.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
inverted | Boolean | false | — |
target | Position | ORIGIN | The place the player must be looking at |
maxAngle | Double | 15.0 | How far off centre the gaze may be, in degrees; 10 is a precise look, 45 a glance |
maxDistance | Double | 16.0 | How far the player may stand from it, in blocks |
refreshTicks | Long | 4 | Ticks between two checks; 4 follows a turning head without costing a check every tick |
Common TypeWriter fields (children)
| Field | Type | Default | Description |
|---|---|---|---|
children | List<Ref<AudienceEntry>> | empty | — |