ACE3/addons/common/functions/fnc_ambientBrightness.sqf

15 lines
324 B
Plaintext
Raw Normal View History

/*
* 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)
*/
2015-01-12 18:22:58 +00:00
#include "\z\ace\addons\common\script_component.hpp"
sunOrMoon * sunOrMoon + moonIntensity/5 min 1