mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Added build height check to modular_build.sqf
This commit is contained in:
@@ -358,6 +358,20 @@ if (_canBuild select 0) then {
|
|||||||
deleteVehicle _objectHelper;
|
deleteVehicle _objectHelper;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (DZE_BuildHeightLimit > 0 && abs(_objHDiff) > DZE_BuildHeightLimit) exitWith {
|
||||||
|
_isOk = false;
|
||||||
|
_cancel = true;
|
||||||
|
_reason = format[localize "STR_EPOCH_PLAYER_168",DZE_BuildHeightLimit];
|
||||||
|
detach _object;
|
||||||
|
deleteVehicle _object;
|
||||||
|
if (_VectorWorkAround) then {
|
||||||
|
detach _object2;
|
||||||
|
deleteVehicle _object2;
|
||||||
|
};
|
||||||
|
detach _objectHelper;
|
||||||
|
deleteVehicle _objectHelper;
|
||||||
|
};
|
||||||
|
|
||||||
if (player getVariable["combattimeout",0] >= diag_tickTime) exitWith {
|
if (player getVariable["combattimeout",0] >= diag_tickTime) exitWith {
|
||||||
_isOk = false;
|
_isOk = false;
|
||||||
_cancel = true;
|
_cancel = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user