Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.17
more ▼

asked Oct 17 '17 at 08:49 AM in Using UE4

avatar image

1 1 1

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

How about using "Get Currently Perceived Actors" instead?

more ▼

answered Oct 17 '17 at 09:20 AM

avatar image

46 1 2 2

avatar image verdigos Oct 17 '17 at 03:48 PM

Thanks. But it isn't that i need. It returns actors that are sensed right now. I need actors that are in "memory".

(comments are locked)
10|2000 characters needed characters left

You need to set MaxAge in AI Perception Component's AI Sight config so it will be forgotten after that many seconds.

more ▼

answered Nov 11 '17 at 09:04 PM

avatar image


avatar image FakeEnema Jul 14 '18 at 03:32 AM

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.

(comments are locked)
10|2000 characters needed characters left

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

more ▼

answered Aug 11 '18 at 03:19 AM

avatar image

Ambience Lee
43 6 5 8

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question