Character Patrol
Patrol AI for characters: walks a repeating loop between points, with commands to pause, resume, reset, or send it back.
Introduction
Character Patrol makes a character walk a repeating patrol loop between waypoints, which is perfect for guards, sentries, and wandering wildlife. Commands let you pause, resume, reset, or send the character back at any time. The Character Patrol component panel on a character in the Uni editor Image The Character Patrol component panel in the character's Properties Panel. caption
How to Access
Select the character, open its Properties Panel, press Add Component, and pick Character Patrol under the Gameplay category. It is one of the eight components a character root accepts. How to Access - Add Component on a character
Properties
Route Points List The patrol waypoints the character walks between. Time & Mode Enum Speed between points and repeat mode. Stay Time Float Idle pause at each waypoint. Auto Move Bool Starts patrolling automatically when on. Curve Path Smooth curved walking instead of sharp corners. Property Type Description Every property on the Character Patrol component.
Events
Character Patrol has no events.
Commands
Move Starts or resumes the patrol. Pause Freezes the character where it is. Reset Returns the character to the first waypoint. Return Sends the character back along its route. Command Description Commands that control the patrol.
Example
A knight NPC patrolling an area. Character Patrol - simple example