Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

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.

Registrymanifold-ai:lod-profile
Filesdata/ai_lod/*.ron, *.update.ron, *.final.ron
Sidesserver: only the server loads it
Readsnothing
ContractBrains, data stage

Entry

A record, written LodProfile(..); the name before the parentheses is optional.

FieldTypeRequiredDefaultDescription
idstringyesThe profile’s key, <mod-id>:<name>.
full_radiusf32no48.0Full rate within this many blocks of a player.
reduced_radiusf32no128.0Reduced rate within this many blocks.
demote_afterf32no5.0Seconds a demotion’s condition must hold before it applies.
dormantboolnotrueWhether the agent may go dormant at all.
pin_while_owner_onlineboolnofalseWhether the agent stays at full rate while its owner is online (pets).
combat_holdf32no10.0Seconds 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")