Line Trace never spots player, even if "seen"

Hello! :slight_smile:
I’m trying to make it so if the player walks into a Light he is being “seen” but if he steps into a Light and is behind an object at the same time he is still hidden.
I got everything done except the Line Trace, which is breaking my head.
Basically, I’m doing a Line Trace by channel, then do a break hit and check what object it hit. if it hit the player actor the player is spotted. If it hit another object before that the player remains hidden.
This does not work however. It never recognizes the player at all! Edit: I also have set the collision settings on player AND capsule to block on everything, just to be sure.
Here’s my blueprint code, and the state in the Game:

http://www.tiikoni.com/tis/view/?id=7fb6145
http://www.tiikoni.com/tis/view/?id=4a82d6e
http://www.tiikoni.com/tis/view/?id=34ded86

I hope someone can help me I am really frustrated and under time pressure as this is for a project at uni and deadline’s approaching. >_<

Thank you in advance! <3

I’m not 100%, but I suspect its because you’re tracing by visibility - and there’s nothing visible on your character to hit. Try sticking a static mesh (just a sphere will do) on your player pawn’s root and see if that makes any difference.

OMG THANK YOU! This solved the problem! I was already going nuts about it. Finally it works. Once again, thank you so much!

A year later, can you please consider reposting the links you put up in your original question? I am trying to track down a similar issue for a VERY similar use case (security cameras rather than lights).

Does a Skeletal Mesh work or do I need to add specifically a static mech? I have the default Unreal player model on my pawn, but I am not sure if it is working right.