ForestGuards.module
README.md
ForestGuards (module)
The forest showcase's guard settings. It defines aiKit's forestGuard preset (aiKit's guard: patrols a route, sees in a cone, hears footsteps and searches where it last saw you), with no stylised aiKit body, because each guard wears a humanBodyKit watchman body from GuardBody. The scene's build and every peer require it, so the preset exists before the guards start.
local Guards = require("~showcase.ForestGuards") -- or require("showcase.ForestGuards")
guard.component.add("aiKit.Brain", { preset = Guards.PRESET, route = points })
Known limits
- The preset is defined per machine when the module loads; a peer that never loads it would run the stock guard look.