This commit is contained in:
Florian Kinder
2014-02-06 18:55:57 +01:00
parent f999a0f02b
commit 246d19381d

View File

@@ -36,8 +36,13 @@ _isMine = _objType in ["Land_iron_vein_wreck","Land_silver_vein_wreck","Land_gol
_isModular = _obj isKindOf "ModularItems"; _isModular = _obj isKindOf "ModularItems";
_limit = 3; _limit = 3;
if (DZE_StaticConstructionCount > 0) then {
_limit = DZE_StaticConstructionCount;
}
else {
if (isNumber (configFile >> "CfgVehicles" >> _objType >> "constructioncount")) then { if (isNumber (configFile >> "CfgVehicles" >> _objType >> "constructioncount")) then {
_limit = getNumber(configFile >> "CfgVehicles" >> _objType >> "constructioncount"); _limit = getNumber(configFile >> "_objType" >> _classname >> "constructioncount");
};
}; };
_findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], 30]; _findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], 30];