make nitelight only work at night

https://community.bistudio.com/wiki/setLightDayLight
This commit is contained in:
vbawol 2017-08-18 11:07:02 -05:00
parent 763bc80e49
commit 065de1c165

View File

@ -27,7 +27,6 @@ if (_nlEnabled isEqualTo 1) then {
EP_light = "#lightpoint" createvehiclelocal _pos;
EP_light setposATL _pos;
EP_light attachTo [player,[0,8.11,_nlZ]]; //offset infront of player so that the darkness is 'following' them.
EP_light setLightDayLight true; //TODO: Test if this can be turned off (Dawn / Dusk)
EP_light setLightBrightness _nlBright;
EP_light setLightAmbient [0.435, 0.439, 0.439];//Using new Colours.
EP_light setlightcolor [0.435, 0.439, 0.439];