disallow building inside a vehicle

This commit is contained in:
vbawol 2016-04-10 11:16:27 -05:00
parent 8bdcd99734
commit a10142907f

View File

@ -28,6 +28,9 @@ _buildingAllowed = true;
_ownedJammerExists = false;
_nearestJammer = objNull;
// reject building if in vehicle
if (vehicle player != player)exitWith{["<t size = '1.6' color = '#99ffffff'>Building Disallowed: Inside Vehicle</t>", 5] call Epoch_dynamicText; false };
// defaults
_config = 'CfgEpochClient' call EPOCH_returnConfig;
_buildingJammerRange = getNumber(_config >> "buildingJammerRange");