Use ai pawn sensing with the player

Hi there I was wondering if it was possible to use the ai pawn sensing on the player character. What I mean is that I want an event to happened when my character see an enemy. If I can not do you guys have any idea how I could do so that if an enemy is in the player camera then I can switch a variable? I tried capsule trace but what happened was that if the side of the capsule hit the wall then it doesn’t hit the ai and I can’t use the multicapsule trace because then the event will fire even if the enemy is behind a wall. Finally if I do multiple line trace it cost way to much performance. Thanks and sorry for my english.

I’ve found how I just needed to uncheck the only sense players in the details of the pawnsensing component.