Skip to content

Commit

Permalink
Interaction - Disable open box action when inventory is locked (#8285)
Browse files Browse the repository at this point in the history
  • Loading branch information
mharis001 authored Jun 27, 2021
1 parent da3251c commit 97ac120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/interaction/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ class CfgVehicles {
condition = "true";
class ACE_OpenBox {
displayName = CSTRING(OpenBox);
condition = QUOTE((alive _target) && {(getNumber (configOf _target >> 'disableInventory')) == 0});
condition = QUOTE(alive _target && {!lockedInventory _target} && {getNumber (configOf _target >> 'disableInventory') == 0});
statement = QUOTE(_player action [ARR_2(QUOTE(QUOTE(Gear)), _target)]);
showDisabled = 0;
};
Expand Down

0 comments on commit 97ac120

Please sign in to comment.