AI perception: Pawn never loses sight
I think I found a bug with the AI Perception system. I have an AI Pawn set up to use sight. When leaving the outer lose sight radius, my perception isn't updated to inform my AI Controller that the sight has been lost:
I'm only receiving one call to the update method when the player is sensed. This was working in the past. Not sure when but I guess around UE 4.17. I'm registering the method in begin play:
I also recorded a video showing how the AI never loses sight of me: https://youtu.be/Fm7vhcq7GKk Is this a bug or did something change and I'm doing it wrong now?
asked Apr 02 '18 at 08:36 AM in Bug Reports
I found out what the issue is: I set the auto-success range to 300, thinking this would mean a radius around the enemy where he will always sense the player.
Playing around with this today I noticed my mystake: The auto-success range is relative to the position the player was last seen. So given the maximum speed the player could achieve in my game he was never able to outrun being seen with this high of a value.
Follow this question
Once you sign in you will be able to subscribe for any updates here