Added build height check to dze_buildChecks.sqf

This commit is contained in:
BigEgg
2017-10-07 23:45:27 -05:00
committed by GitHub
parent 820d8bdf2b
commit ac72c00687

View File

@@ -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};