mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
fixes
was missing nearestObjects
This commit is contained in:
@@ -58,7 +58,7 @@ if (_finished) then {
|
|||||||
|
|
||||||
//_tmpbuilt = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
|
//_tmpbuilt = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
|
||||||
|
|
||||||
_soundSource = createSoundSource ["Generator1", position player, [], 0]
|
_soundSource = createSoundSource ["Generator1", position player, [], 0];
|
||||||
|
|
||||||
// TODO: Add running sounds to generator
|
// TODO: Add running sounds to generator
|
||||||
cutText ["Generator has been started.", "PLAIN DOWN"];
|
cutText ["Generator has been started.", "PLAIN DOWN"];
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ _text = getText (configFile >> "CfgVehicles" >> _classname >> "displayName");
|
|||||||
_offset = getArray (configFile >> "CfgVehicles" >> _classname >> "offset");
|
_offset = getArray (configFile >> "CfgVehicles" >> _classname >> "offset");
|
||||||
|
|
||||||
// check for near plot
|
// check for near plot
|
||||||
_findNearestPole = [player, ["Plastic_Pole_EP1_DZ"], 30];
|
_findNearestPole = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], 30];
|
||||||
|
|
||||||
_IsNearPlot = count (_findNearestPole);
|
_IsNearPlot = count (_findNearestPole);
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ if(_IsNearPlot == 0) then {
|
|||||||
|
|
||||||
// Allow building of plot
|
// Allow building of plot
|
||||||
if(_classname == "Plastic_Pole_EP1_DZ") then {
|
if(_classname == "Plastic_Pole_EP1_DZ") then {
|
||||||
if(count ([player, ["Plastic_Pole_EP1_DZ"], 60]) == 0) then {
|
if(count (nearestObjects[player, ["Plastic_Pole_EP1_DZ"], 60]) == 0) then {
|
||||||
_canBuildOnPlot = true;
|
_canBuildOnPlot = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ if(isNumber (configFile >> "CfgVehicles" >> _objType >> "constructioncount")) th
|
|||||||
_limit = getNumber(configFile >> "CfgVehicles" >> _objType >> "constructioncount");
|
_limit = getNumber(configFile >> "CfgVehicles" >> _objType >> "constructioncount");
|
||||||
};
|
};
|
||||||
|
|
||||||
_findNearestPole = [player, ["Plastic_Pole_EP1_DZ"], 30];
|
_findNearestPole = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], 30];
|
||||||
_IsNearPlot = count (_findNearestPole);
|
_IsNearPlot = count (_findNearestPole);
|
||||||
|
|
||||||
if(_IsNearPlot >= 1) then {
|
if(_IsNearPlot >= 1) then {
|
||||||
|
|||||||
Reference in New Issue
Block a user