mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
No gear menu near locked vehicles
This commit is contained in:
7
SQF/dayz_code/compile/fn_gearMenuChecks.sqf
Normal file
7
SQF/dayz_code/compile/fn_gearMenuChecks.sqf
Normal file
@@ -0,0 +1,7 @@
|
||||
disableSerialization;
|
||||
_display = (_this select 0);
|
||||
_close = {locked _x} count (nearestObjects [player, ["AllVehicle"], 10]) > 0;
|
||||
|
||||
if(_close) then {
|
||||
_display closeDisplay 1;
|
||||
};
|
||||
Reference in New Issue
Block a user