Add DZE_Workshops array

This commit is contained in:
A Man
2020-05-27 14:10:18 +02:00
parent 19889a9ddf
commit d15b1432f0
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActi
};
if (_x == "workshop") exitwith {
_distance = 3;
_isNear = count (nearestObjects [_pos, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]);
_isNear = count (nearestObjects [_pos, DZE_Workshops, _distance]);
if (_isNear == 0) then {
_abort = true;
_reason = localize "STR_EPOCH_WORKBENCH_NEARBY";

View File

@@ -51,7 +51,7 @@ if ("fire" in _needNear) then {
};
};
if ("workshop" in _needNear) then {
_isNear = count (nearestObjects [player, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]);
_isNear = count (nearestObjects [player, DZE_Workshops, _distance]);
if(_isNear == 0) then {
_abort = true;
_reason = localize "STR_EPOCH_WORKBENCH_NEARBY";