From ac72c0068726bd2369f36c06b5e66104829f3e0d Mon Sep 17 00:00:00 2001 From: BigEgg Date: Sat, 7 Oct 2017 23:45:27 -0500 Subject: [PATCH] Added build height check to dze_buildChecks.sqf --- SQF/dayz_code/compile/dze_buildChecks.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SQF/dayz_code/compile/dze_buildChecks.sqf b/SQF/dayz_code/compile/dze_buildChecks.sqf index 2660b8916..145e73b6e 100644 --- a/SQF/dayz_code/compile/dze_buildChecks.sqf +++ b/SQF/dayz_code/compile/dze_buildChecks.sqf @@ -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};