From d580ea9ef73ab89021146aaa7efed2f492ddedb1 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Thu, 10 Oct 2013 13:09:02 -0500 Subject: [PATCH] cargo check only on unlocked vehicles --- SQF/dayz_code/compile/fn_selfActions.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index ce3efab47..4550ecff6 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -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, "", ""]; };