Merge pull request #1 from MGTDB/patch-1

Update Ignatz_Client_DoorOpener.sqf
This commit is contained in:
He-Man 2019-06-10 22:11:55 +02:00 committed by GitHub
commit 38947fc2fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ _config = 'CfgEpochClient' call EPOCH_returnConfig;
_buildingJammerRange = getNumber(_config >> "buildingJammerRange");
_value = 0;
_lockvalue = 1;
_nearjammers = nearestobjects [player,["Plotpole_EPOCH"],_buildingJammerRange];
_nearjammers = nearestObjects[player, call EPOCH_JammerClasses,_buildingJammerRange];
if (_nearjammers isEqualTo []) exitwith {false};
_nearestJammer = _nearjammers select 0;
if !((_nearestJammer getVariable["BUILD_OWNER", "-1"]) in[getPlayerUID player, Epoch_my_GroupUID]) exitwith {false};