From 0aafb1d8276a8026961b1651ff0c4dac7e2f4f0e Mon Sep 17 00:00:00 2001 From: oiad Date: Wed, 4 Oct 2017 21:27:09 +1300 Subject: [PATCH] Alter DZE_SafeZonePosCheck to allow custom radii --- SQF/dayz_code/actions/salvage.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/salvage.sqf b/SQF/dayz_code/actions/salvage.sqf index dfce86123..19beb821b 100644 --- a/SQF/dayz_code/actions/salvage.sqf +++ b/SQF/dayz_code/actions/salvage.sqf @@ -20,7 +20,7 @@ s_player_repairActions = []; s_player_repair_crtl = 1; if (_hasToolbox) then { - if (_vehicle call DZE_SafeZonePosCheck) exitWith {(localize "str_salvage_safezone") call dayz_rollingMessages;}; + if ([_vehicle] call DZE_SafeZonePosCheck) exitWith {(localize "str_salvage_safezone") call dayz_rollingMessages;}; [player,"repair",0,false] call dayz_zombieSpeak; [player,50,true,(getPosATL player)] call player_alertZombies; @@ -83,4 +83,4 @@ _wpn = primaryWeapon player; _ismelee = (getNumber (configFile >> "CfgWeapons" >> _wpn >> "melee") == 1); if (_ismelee) then { call dayz_meleeMagazineCheck; -}; \ No newline at end of file +};