data/ai_lod/
An AI level-of-detail profile: how far from players an agent thinks at full rate, at reduced rate, or goes dormant, so distant creatures cost little. A brain names its profile. The engine declares manifold:ambient_creature, manifold:companion (pinned while its owner is online) and manifold:boss (never dormant). Loaded by the server only.
| Registry | manifold-ai:lod-profile |
| Files | data/ai_lod/*.ron, *.update.ron, *.final.ron |
| Sides | server: only the server loads it |
| Reads | nothing |
| Contract | Brains, data stage |
Entry
A record, written LodProfile(..); the name before the parentheses is optional.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | yes | The profile’s key, <mod-id>:<name>. | |
full_radius | f32 | no | 48.0 | Full rate within this many blocks of a player. |
reduced_radius | f32 | no | 128.0 | Reduced rate within this many blocks. |
demote_after | f32 | no | 5.0 | Seconds a demotion’s condition must hold before it applies. |
dormant | bool | no | true | Whether the agent may go dormant at all. |
pin_while_owner_online | bool | no | false | Whether the agent stays at full rate while its owner is online (pets). |
combat_hold | f32 | no | 10.0 | Seconds after taking damage the agent counts as in combat, and stays at full rate. |
Example
No bundled file declares one yet. An entry the engine declares, which mods may patch:
LodProfile(id: "manifold:ambient_creature")