ACE3/addons/common/functions/fnc_ambientBrightness.sqf
2015-01-13 20:56:02 +01:00

15 lines
303 B
Plaintext

/*
* Author: commy2, idea by Falke
*
* Returns a brightness value depending on the sun and moon state. Ranges from 0 to 1 (dark ... bright).
*
* Argument:
* None.
*
* Return value:
* Ambient brightness (Number)
*/
#include "script_component.hpp"
sunOrMoon * sunOrMoon + moonIntensity/5 min 1