mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
disallow building inside a vehicle
This commit is contained in:
parent
8bdcd99734
commit
a10142907f
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user