From 91e4a80ae2c49478584eabd7dfe285c1b8c533ad Mon Sep 17 00:00:00 2001 From: He-Man Date: Tue, 1 Nov 2016 17:41:03 +0100 Subject: [PATCH] Update EPOCH_lockCheck.sqf Otherwise it is possible to unlock foreign Doors / Gates while controling an UAV. If you control an UAV, cameraon will check the Plotpoles near the UAV. --- Sources/epoch_code/compile/building/EPOCH_lockCheck.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/epoch_code/compile/building/EPOCH_lockCheck.sqf b/Sources/epoch_code/compile/building/EPOCH_lockCheck.sqf index 5a8d9b3f..3bef7b05 100644 --- a/Sources/epoch_code/compile/building/EPOCH_lockCheck.sqf +++ b/Sources/epoch_code/compile/building/EPOCH_lockCheck.sqf @@ -29,7 +29,7 @@ _config = "CfgEpochClient" call EPOCH_returnConfig; _buildingJammerRange = getNumber(_config >> "buildingJammerRange"); if (_buildingJammerRange == 0) then { _buildingJammerRange = 75; }; -_jammer = nearestObjects[player, ["PlotPole_EPOCH"], _buildingJammerRange]; +_jammer = nearestObjects[cameraon, ["PlotPole_EPOCH"], _buildingJammerRange]; _jammed = false; if !(_jammer isEqualTo[]) then { {