From dd00fbce374948287e46371bcca684b0636593b0 Mon Sep 17 00:00:00 2001 From: rekterakathom <30532050+rekterakathom@users.noreply.github.com> Date: Sun, 2 Jul 2023 23:28:58 +0300 Subject: [PATCH] Switch to getLighting Switch to getLighting so the night check is based on light levels instead of sound controller --- addons/main/functions/fnc_isNight.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/main/functions/fnc_isNight.sqf b/addons/main/functions/fnc_isNight.sqf index 01de4fb3..4989ba9e 100644 --- a/addons/main/functions/fnc_isNight.sqf +++ b/addons/main/functions/fnc_isNight.sqf @@ -23,4 +23,5 @@ if (behaviour _unit isEqualTo "STEALTH" ) exitWith {false}; // night check -(getPos _unit) getEnvSoundController "night" isEqualTo 1 +// ~65 is the light level where vanilla AI puts nightvision goggles on +(getLighting # 1) < 65