in pawn sensing AI can see me behind the walls

in pawn sensing AI can see me behind the walls, how do I fix this?.

I’m creating a horror game that has a way to hide, but even hidden pawnsensing can see me even with a wall in front, how can I solve this?

Maybe instead of a pawn sense you could use a line trace or a sphere trace. I find pawn sensing unreliable.

Do you have hearing enabled for senses?
Do you have collision set up correctly on the wall?

Also note that pawn sensing is based on the detection of the capsule center. Basically character pelvis.

I would try using the AI Perception component instead of the pawn sensing.