I try create small Horror game and i want added simply light stealh system. I try search but not finding any tutorials about this.
And i create this compact detecting in line trace system.
It check if player stand in light and nothing prevents the light, it check player head and feet.
You need 2 variables:
1: Boolean type - PlayerInRange
2: Float type - DetectionRange
Just forgot about one thing, i’ts blueprint works if you crouch but need change feet vector-vector z value less than 75, because feet line trace if you start crouch begin touch floor and say as though player in shadow.
This was incredibly helpful thank you so much! I figured out that you can make the sensor directional by building a physical barrier into the asset to block the sensor, and not allowing the line trace to ignore itself.