AI perception GetKnownPerceivedActors issue

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.

How about using “Get Currently Perceived Actors” instead?

Thanks. But it isn’t that i need. It returns actors that are sensed right now. I need actors that are in “memory”.

He said he already set the max age to 5 seconds. I’m having the same problem. I have Max Age set to 10 seconds, but it never forgets them.

It will never forget anything as I have tested in 4.20, just use the age as a filter whenever you need to.

我也碰到了这个问题,这或者是个BUG,或者是开发人员有意为之。
你看了代码就知道了,设置不设置SenseToUse的判断条件不一样。
UE4.22。