mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Localize player_craftItem near check
This commit is contained in:
@@ -66,7 +66,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActi
|
||||
_isNear = count (nearestObjects [_pos, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]);
|
||||
if(_isNear == 0) then {
|
||||
_abort = true;
|
||||
_reason = localize "STR_BLD_name_ItemWorkshop";
|
||||
_reason = localize "STR_EPOCH_WORKBENCH_NEARBY";
|
||||
};
|
||||
};
|
||||
case "fueltank":
|
||||
|
||||
@@ -66,7 +66,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >>
|
||||
_isNear = count (nearestObjects [_pos, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]);
|
||||
if(_isNear == 0) then {
|
||||
_abort = true;
|
||||
_reason = localize "STR_BLD_name_ItemWorkshop";
|
||||
_reason = localize "STR_EPOCH_WORKBENCH_NEARBY";
|
||||
};
|
||||
};
|
||||
case "fueltank":
|
||||
|
||||
@@ -53,14 +53,14 @@ if ("fire" in _needNear) then {
|
||||
_isNear = {inflamed _x} count (_pPos nearObjects _distance);
|
||||
if(_isNear == 0) then {
|
||||
_abort = true;
|
||||
_reason = "fire";
|
||||
_reason = localize "STR_EPOCH_FIRE";
|
||||
};
|
||||
};
|
||||
if ("workshop" in _needNear) then {
|
||||
_isNear = count (nearestObjects [player, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]);
|
||||
if(_isNear == 0) then {
|
||||
_abort = true;
|
||||
_reason = "workshop";
|
||||
_reason = localize "STR_EPOCH_WORKBENCH_NEARBY";
|
||||
};
|
||||
};
|
||||
if (_abort) exitWith {
|
||||
|
||||
@@ -16853,6 +16853,10 @@
|
||||
<German>Feuer (angezündet)</German>
|
||||
<Czech>Ohniště (hořící)</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_WORKBENCH_NEARBY">
|
||||
<English>Workbench, Wooden Shed or Wood Shack</English>
|
||||
<German>Werkbank, Holzschuppen oder Holzhütte</German>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_HUMANS_NEARBY">
|
||||
<English>Humans Nearby</English>
|
||||
<German>Spieler in der Nähe</German>
|
||||
|
||||
Reference in New Issue
Block a user