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:
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