Character Follower
Pet and guard AI: makes an NPC automatically chase and tail the player character.
Introduction
Character Follower is the pet and guard AI for characters. It makes an NPC chase and stay close to the player character automatically, with vision limits so it only follows when the player is actually nearby. You find it in the Add Component menu on a character under the Gameplay category, together with Character Health, Character Patrol, and Conversation. Some documentation also calls it NPC Follower. It is a different component from Follower: Follower makes an object chase a target, while Character Follower is tuned for characters following the player, with follow control over when the chase is allowed. The Character Follower component panel on a character in the Uni editor Image The Character Follower 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 Follower under the Gameplay category. It is one of the eight components a character root accepts. How to Access - Add Component on a character
Properties
Active When Controlled Bool Whether the NPC keeps following even while it is being controlled by a player. Vision Radius & Angle Float How far and how wide the NPC can see; it ignores players outside this cone. X-Ray Keeps chasing even when the player hides behind walls. Move & Turn Speed How fast the NPC runs and turns while chasing. Camp Radius Leash area: if the player runs too far, the NPC returns to its camp center. Stopping Distance How close the NPC gets before it stops approaching. Follow Control Channel Signal that decides when the NPC is allowed to chase. Property Type Description Every property on the NPC Follower component.
Events
NPC Follower has no events.
Commands
NPC Follower has no commands.
Example
A police officer chasing a player. NPC Follower - simple example