mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
fixed incorrect code here
This commit is contained in:
@@ -52,9 +52,7 @@ _reason = "";
|
|||||||
_needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Build" >> "neednearby");
|
_needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Build" >> "neednearby");
|
||||||
|
|
||||||
{
|
{
|
||||||
_need = _x select 0;
|
switch(_x) do{
|
||||||
_distance = _x select 1;
|
|
||||||
switch(_need) do{
|
|
||||||
case "fire":
|
case "fire":
|
||||||
{
|
{
|
||||||
_isNear = {inflamed _x} count (getPosATL player nearObjects _distance);
|
_isNear = {inflamed _x} count (getPosATL player nearObjects _distance);
|
||||||
@@ -77,6 +75,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >>
|
|||||||
if(_isNear == 0) then {
|
if(_isNear == 0) then {
|
||||||
_abort = true;
|
_abort = true;
|
||||||
_reason = "fuel tank";
|
_reason = "fuel tank";
|
||||||
|
// _distance = 5;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user