3 Step Setup:
Add Enhanced Sight Component to your AI Controller.
Add Light Perception Component to your Player Controller. (Optional - If you want lighting affects)
Calibrate with the World Perception Calibrator Actor - Use this to calibrate settings
The Enhanced Sight Perception Component has multiple adjustable settings:
Minimum Detection Percentage - Default 0.08 - Ignores any readings below this number
Time to forget - How long before the On Forgot Actors node will fire after the AI has lost sight of the player
Sight Distance - How far can the AI see - Default is 50m
Peripheral Vision - The AI Peripheral Vision
Eyes Location - An offset to allow you too adjust where the AI scans from
Default Bone name to check - All the bone you want to scan for. More = Finer Results but too much can be expensive.
Global Detection Multiplier - Multiplier too add to the final detection amount
Check for Height - Enables player height check. Checks if the player is keeping a low profile
Check for silhouettes - Check if the player outline shows. Eg, mountain or rooftop
Silhouettes Detection Multiplier - Multiplier too add to the Silhouettes amount
Check for speed - makes the Ai reactive to speed
Speed detection multiplier - Speed detection multiplier
Debug bone traces - Allows you to debug AI sight behaviour in an environment
The Light Perception Component has multiple adjustable settings:
Bone names to check - Overrides the enhanced sight perception components variable
Shadow Detection multiplier - Shadow Detection multiplier
Sunlight Detection Multiplier - Sunlight Detection Multiplier
Note: The Light Perception component isn't required for Distance, Bone, Height, Silhouettes and speed. The Enhanced Sight Perception will work without it.
The CG_Spotlight and CG_PointLight has one adjustable settings:
Artificial Light Detection Multiplier - Multiplier for Light actors. Will adjust how much the player is seen under light
World Perception Calibrator Actor:
Use this. Every world is different, use this to fine tune all the components and actors. Drop it into the world, press play and adjust all the settings for the components and actors in one place.