Description

There is a difference in implementation and set of checks that are made in GetKnownPerceivedActors() depending on if you use specific SenseClass or leave it as nullptr (so it will return info for all available senses).

This was reported and tested in 4.21.2 (CL-4753647). This was reproduced in 4.20.3 (CL-4369336), 4.22 (CL-5365847), and Main 4.23 (CL-5423312)

Steps to Reproduce
  1. Download and open the attached project.
  2. In PIE, move to the front of the AI character. Notice onscreen text that output result of GetKnownPerceivedActors(). There will be 2 strings: one is using of this function without specifying sense class (so it return info for all senses) and one that is using Sight class.
  3. Move to the back of the AI character. After 5 seconds AI should forget that sense. See that the one string which uses All senses disappeared (as it should) but the string with specific sense is still output the character.

Results: GetKnownPerceivedActors used with Sense class is returning senses that is already forgot.

Expected: GetKnownPerceivedActors used with Sense class will return nothing once the senses are forgotten.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-71678 in the post.

3
Login to Vote

Fixed
ComponentUE - AI
Affects Versions4.224.20.34.234.21.2
Target Fix4.23
Fix Commit6652669
Main Commit6835252
CreatedMar 17, 2019
ResolvedMay 28, 2019
UpdatedJun 4, 2019
View Jira Issue