From a10142907f07a387a50a07555e9298ee6b4aac54 Mon Sep 17 00:00:00 2001 From: vbawol Date: Sun, 10 Apr 2016 11:16:27 -0500 Subject: [PATCH] disallow building inside a vehicle --- Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf b/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf index d12c7be9..417c434f 100644 --- a/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf +++ b/Sources/epoch_code/compile/building/EPOCH_isBuildAllowed.sqf @@ -28,6 +28,9 @@ _buildingAllowed = true; _ownedJammerExists = false; _nearestJammer = objNull; +// reject building if in vehicle +if (vehicle player != player)exitWith{["Building Disallowed: Inside Vehicle", 5] call Epoch_dynamicText; false }; + // defaults _config = 'CfgEpochClient' call EPOCH_returnConfig; _buildingJammerRange = getNumber(_config >> "buildingJammerRange");