mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
19 lines
415 B
Plaintext
19 lines
415 B
Plaintext
disableSerialization;
|
|
_display = (_this select 0);
|
|
_inVehicle = (vehicle player) != player;
|
|
_cTarget = cursorTarget;
|
|
if(_inVehicle) then {
|
|
_cTarget = (vehicle player);
|
|
};
|
|
|
|
_isOk = false;
|
|
{
|
|
if(!_isOk) then {
|
|
_isOk = _cTarget isKindOf _x;
|
|
};
|
|
} forEach ["LandVehicle","Air"];
|
|
|
|
if((locked _cTarget) and _isOk) then {
|
|
cutText ["Cannot access gear in a locked vehicle." , "PLAIN DOWN"];
|
|
_display closeDisplay 1;
|
|
}; |