Hey this system of light colide is very good . Hey you know a video expain this system of light collid
I just detect the plain light of sight. I thought of detecting if player is lit or not, but it is easier just to ckeck that Moon (or Moons) are in direct line of sight.
You can find a lot of video tutorials about direct line of sight on YouTube! (=