AI Perception issues

UE5 AI perception for somehow not detecting when a scene has lots of actors. (not a lot, just like 50-100?)
When I decrease the amount of actors (or some actors were destroyed during gameplay), it starts detecting again

This topic has been moved from Feedback for Unreal Engine Team - Unreal Online Learning Feedback to Programming & Scripting - AI. I also added the tag AI-Debugging for you. :smiley:

When posting, please review the categories to ensure your topic is posted in the most relevant space.

'- Your Friendly Neighborhood Moderator

3 Likes

Hi, the sight sense has a maximum amount of work it does per tick, and it prioritizes by distance. That means you could increase the amount of work it is allowed to do per tick, for example inside the DefaultGame.ini add something like

[/Script/AIModule.AISense_Sight]
MaxTracesPerTick=60

And/or you could reduce the amount of work needed, by implementing team system and only detecting hostiles.

2 Likes

Thanks a lot, it was resolved!