Hi! I’m looking for something that allows me to get the amount of light shining on player, and reduce\increase player visibility based on it, much like in Splinter Cell.
I don’t currently have an enemy detection system, but I am working on it and would like to know how to do this.
what about each lamp that produces hard shadows in a area cast a ray at the player,
(like a max of 5 or so?)
hitting the player elevates the meter?
idea 2
localize the player position to each close lamp
use the light casting axis for
if playerLocal.z < 0:
(player is in front of lamp)
if playerLocal.x<5+(abs(playerLocal.z)) and playerLocal > -5+(-abs(playerLocal.z)):
(this defines a cone :D)