mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Add DZE_Workshops array
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user