mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Added build height check to dze_buildChecks.sqf
This commit is contained in:
@@ -97,6 +97,8 @@ if (!_canBuild) exitWith {
|
||||
[_canBuild, _isPole];
|
||||
};
|
||||
|
||||
if (DZE_BuildHeightLimit > 0 && ((getPosATL (vehicle player)) select 2) >= DZE_BuildHeightLimit) exitWith {dayz_actionInProgress = false; format [localize "STR_EPOCH_PLAYER_168", DZE_BuildHeightLimit] call dayz_rollingMessages; [false, _isPole];};
|
||||
|
||||
// Also count safes, lockboxes, vanilla buildables, tents and stashes against DZE_BuildingLimit
|
||||
_buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_buildables","DZ_storage_base"];
|
||||
_center = if (isNull _nearestPole) then {_pos} else {_nearestPole};
|
||||
|
||||
Reference in New Issue
Block a user