AI Perception bugs when simulating

When I simulate the game and then click “possess” and walk the player in front of an enemy, it will not see.
When I play the game in PIE and walk in front of that same enemy on the same location it will work.

I believe that there should be no difference between a PIE-play and a simulate+possess play for enemy visibility. In both cases there is a player-pawn present. But the enemies only perceive the player when playing in the normal PIE.

Hello,

I’ve attempted to reproduce your issue, but haven’t been able to do so. Have you tried this in 4.12 as well?

Here’s what I did:

  1. Simulated
  2. Possessed my character
  3. Walked in front of my AI Pawn
  4. I have a Print String set up to print True or False if the character is detected or not, and it is working as expected.

Do you have full repro steps as far as how I can reproduce this in a clean project?

The bug is still there in 4.12.1 (I upgraded the project).

I created a new project in an attempt to reproduce this one and instead when duplicating the character in the clean project I ran into this crash again:

I need some more time I think to figure it out but I do know one thing for sure: there is at least one very serious bug somewhere with the ai perception and it’s still there in 4.12.1 because clean projects also sometimes (50% so far) crash on duplicating entities with an ai perception.

I will add another reply here once i know more.

As you are currently investigating how to reproduce this issue, I will mark this topic as resolved. When you have discovered repro steps, or can provide a test project where the issue is occurring, please feel free to reopen this thread.

Please post updates regarding your crash on your other post, so we can investigate that separately: AI Perception crash - Programming & Scripting - Unreal Engine Forums

Have a great day