Details
Target: Obenseuer 0.5.08 (buildid 25969064), Unity 6000.0.77f1 Mono, BepInEx 6 Unity.Mono (be.788, the tested build) or BepInEx 5 (5.4.23 or later). Logs go to BepInEx\logs\obenseuer.moddingframework.npcs.log.
Unlisted items are internal and may change.
When you can call it
- Call from the main thread, not a thread you started.
- It is safe to call at any time. Empty reads return
0,false,nullor an empty list. - Only
Animals.Damagechanges the game. - If a handler throws, the error is logged and the other handlers still run.
- Don’t change scenes or NPCs from a handler.
What to check for and what comes back
Npcs.IsAvailableis alsofalseif a feature group is off; reads still work.Relationships.GetDispositionandRelationships.Hasreturn0fandfalsefor a null or empty id.- Apart from
Npcs.FindandAnimals.Damage, no argument can make a call throw. - A failed read returns the default and logs its first failure.
If something fails to set up
- If a game method cannot be changed, its feature group turns off and is logged.
- Only that group’s events stop. Group names are under Under the hood.