cargo check only on unlocked vehicles

This commit is contained in:
[VB]AWOL
2013-10-10 13:09:02 -05:00
parent a57d26f66f
commit d580ea9ef7

View File

@@ -252,7 +252,7 @@ if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cu
};
If(DZE_AllowCargoCheck) then {
if((_isVehicle or _isTent or _isnewstorage) and _isAlive and !_isMan) then {
if((_isVehicle or _isTent or _isnewstorage) and _isAlive and !_isMan and !locked _cursorTarget) then {
if (s_player_checkGear < 0) then {
s_player_checkGear = player addAction ["Cargo Check", "\z\addons\dayz_code\actions\cargocheck.sqf",_cursorTarget, 1, true, true, "", ""];
};