AI Perception Bug WTF

I made a simple AI using AI Perception component and it seemed to work quite well but then I noticed that the AI can’t sense me anymore when I’m behind ANY object. Even when I pickup a weapon (i made a simple weapon system) the AI can’t see me anymore and I need to drop the weapon. It’s ridiculous that I can hide behind a toothpick without being seen.What should I do? Is there a way to fix this?

Hey ,

From what you’re describing, it seems that the collision of the objects is blocking the Perception trace. There was a bug in 4.12 where Perception traces were using the wrong trace channel, so it’s possible that this is what you’re running into. I’d recommend upgrading a copy of your project to 4.14 to see if this resolves the issue.

If this does not resolve the issue, I recommend checking your collision to ensure that it is not too large and blocking the trace.

Also, keep in mind that the Gameplay Debugger is a great tool to have a visual of what your Perception traces are looking like. You can access this by pressing the ’ (apostrophe) key, and then pressing the 4 key on your NumPad to activate the Perception debugger during PIE.

Let me know if that helps.

Have a great day