AI perception GetKnownPerceivedActors issue

verdigos
Tue, 17 Oct 2017 08:49:39 +0000
AI

I’ve tried to use AI perception system. I need to check whether the player was seen by ai character. I added ai perception component to my controller and set up the max age for sight sense ( 5 sec). I created the service in AI behavior tree which checks player visibility. I used node GetKnownPercievedActors in BP. The problem is that when i specify the sense in this node, it starts return all actors the component have seen during game and no matter how long ago it was. Looks like ai perception component never forgets. In the same time AI debug displays that everything looks good and actors are being forgetten as it should. But when i set sense to None , GetKnownPercievedActors returns right actors.
Is there any way to fix it, except setting sense to None in node?
Thanks.

6 posts - 1 participant