mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Perform build checks before removing magazines
Also allow tents and stashes to be built without a plot pole (same as 1051).
This commit is contained in:
@@ -86,6 +86,10 @@ if (!_ok) exitWith {
|
||||
_msg call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
_posReference = [player] call FNC_GetPos;
|
||||
_canBuild = [_posReference, _item, false] call DZE_BuildChecks;
|
||||
if !(_canBuild select 0) exitWith {};
|
||||
|
||||
// lets check player has requiredParts for upgrade
|
||||
_ok = true;
|
||||
_upgradeParts = [];
|
||||
@@ -107,11 +111,6 @@ if (!_ok) exitWith {
|
||||
_msg call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
_posReference = [player] call FNC_GetPos;
|
||||
|
||||
_canBuild = [_posReference, _item, false] call DZE_BuildChecks;
|
||||
if (!(_canBuild select 0)) exitWith {};
|
||||
|
||||
//localize "str_player_build_rotate" call dayz_rollingMessages;
|
||||
_msg = localize "str_player_build_rotate";
|
||||
_msg call dayz_rollingMessages;
|
||||
|
||||
Reference in New Issue
Block a user