AIPerception Updated Event Triggers True/False with player movement, how to fix?

Perception_reduced

I have a player controller with AIPerception component for vision, and it works as intended when just rotating the camera, but when the player moves it will continuously fire the update event. What can I do to fix this? I have tried changing every variable in the component and nothing works, there is no mix up with other assets as you can see in the print statements, and there is no player model getting in the way. None of that should matter though since when aiming the camera it does actually work, please help!

2 Likes

Try disabling auto-sense updates on movemont.

Check if the movement updates AI’s LOS. Try disabling “Auto Success range from last Seen Location” or adjust detection radius in the AI perception component .

Thank you, do you mean disabling the AI from sensing during player movement? If so I tried that and it doesn’t feel good, since it disables it for the rotation at the same time, leading to odd results

Thank you, where do I check if the movement updates AIs LOS? I am but a humble blueprinter lol. Also the auto success from last seen location is already at -1 by default, changing it to 0 or so doesn’t fix the issue. Also the detection radius is like 15m so that should be ok (I want it that high so things can be detected from across the house as long as there is LOS)

Only sensing if camera is moving?

Thanks but if I do this then if the player only strafes without rotating the camera then it will not detect if the object became out of sight or not. I decided to remake the functionality using a dot product and cast to the active items, and managing what items should be looked for under the hood. Hopefully Unreal sees this as a bug though and decides to fix it, would be great if it worked as intended!