Possible to check if a position is in a shadow.
[player,"VIEW"] checkVisibility [eyePos player,eyePos player vectorDiff ((getLighting#2) vectorMultiply 200)]
Gets general environment's light settings.
getLighting
Returns: Array with [ambientLightColor, ambientLightBrightness, lightDirection, starsVisibility]
getLighting; // returns [[0.646753,0.781818,1],28526.2,[-0.0167152,0.211598,-0.977214],0]
getLighting params ["_ambientLightColour", "_ambientLightBrightness", "_lightDirection", "_starsVisibility"];
getLightingAt · moonPhase · Light Source Tutorial
Possible to check if a position is in a shadow.
[player,"VIEW"] checkVisibility [eyePos player,eyePos player vectorDiff ((getLighting#2) vectorMultiply 200)]