Hello,
There’s a lot of code missing, so I’m unsure of how you’re approaching this.
However, you can create a collision geometry (cube, capsule, cone) that checks for actors of a specified channel that protrudes from the camera/character. Make sure that you specify the overlap channel, otherwise this trigger geometry will interact with everything.