Guard NPC AI Preset.
Patrols a set of waypoints and automatically switches to chasing behavior when a target enters its detection radius.
const guard = createGuardPreset({ patrolWaypoints: [[0,0,0], [10,0,0]], detectionRadius: 12}); Copy
const guard = createGuardPreset({ patrolWaypoints: [[0,0,0], [10,0,0]], detectionRadius: 12});
Guard NPC AI Preset.
Patrols a set of waypoints and automatically switches to chasing behavior when a target enters its detection radius.