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.
asked Oct 17 '17 at 08:49 AM in Using UE4
How about using "Get Currently Perceived Actors" instead?
answered Oct 17 '17 at 09:20 AM
It will never forget anything as I have tested in 4.20, just use the age as a filter whenever you need to.
answered Aug 11 '18 at 03:19 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here