From 94790647c25f68356721cf249db7856b7a720377 Mon Sep 17 00:00:00 2001 From: Wyqer Date: Thu, 5 Sep 2019 21:06:09 +0200 Subject: [PATCH] Fixed lights are still on while lamp is hidden --- .../scripts/shared/functions/F_kp_createClearance.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Missionframework/scripts/shared/functions/F_kp_createClearance.sqf b/Missionframework/scripts/shared/functions/F_kp_createClearance.sqf index 3032a04c..7dcead19 100644 --- a/Missionframework/scripts/shared/functions/F_kp_createClearance.sqf +++ b/Missionframework/scripts/shared/functions/F_kp_createClearance.sqf @@ -9,8 +9,8 @@ params [ if (save_is_loaded && {(KP_liberation_clearances findIf {(_x select 0) isEqualTo _centerPos}) != -1}) exitWith {false}; { + _x switchLight "OFF"; _x hideObjectGlobal true; - _x enableSimulationGlobal false; _x allowDamage false; } forEach (nearestTerrainObjects [_centerPos, [], _radius, false, true]);