Line Trace never spots player, even if "seen"
Hello! :) 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:
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.
answered Feb 24 '16 at 12:14 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here