From 8971621d26a088899fc740d05a3bf937f7654e17 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Fri, 27 Dec 2013 10:04:45 -0600 Subject: [PATCH] fixed incorrect code here --- SQF/dayz_code/actions/player_build.sqf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/actions/player_build.sqf b/SQF/dayz_code/actions/player_build.sqf index 94a3146b9..b350294f5 100644 --- a/SQF/dayz_code/actions/player_build.sqf +++ b/SQF/dayz_code/actions/player_build.sqf @@ -52,9 +52,7 @@ _reason = ""; _needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Build" >> "neednearby"); { - _need = _x select 0; - _distance = _x select 1; - switch(_need) do{ + switch(_x) do{ case "fire": { _isNear = {inflamed _x} count (getPosATL player nearObjects _distance); @@ -77,6 +75,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> if(_isNear == 0) then { _abort = true; _reason = "fuel tank"; + // _distance = 5; }; }; };