From 556506acbede26737ee5f53e3edbdc8901a4c0f0 Mon Sep 17 00:00:00 2001 From: vbawol Date: Tue, 28 Feb 2017 13:30:08 -0600 Subject: [PATCH] fixed inventory opened script not returning bool also block totally if both linked containers are locked --- .../compile/event_handlers/EPOCH_InventoryOpened.sqf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/epoch_code/compile/event_handlers/EPOCH_InventoryOpened.sqf b/Sources/epoch_code/compile/event_handlers/EPOCH_InventoryOpened.sqf index 457b0895..23799717 100644 --- a/Sources/epoch_code/compile/event_handlers/EPOCH_InventoryOpened.sqf +++ b/Sources/epoch_code/compile/event_handlers/EPOCH_InventoryOpened.sqf @@ -21,7 +21,8 @@ _seclocked = false; if !(isNull _sec) then { _seclocked = (locked _sec in [2, 3] || _sec getVariable['EPOCH_Locked', false]); }; -if (_containerlocked || _seclocked) then { +_blocked = (_containerlocked && _seclocked); +if (!_blocked && _containerlocked || _seclocked) then { [] spawn { disableSerialization; waitUntil {!isNull findDisplay 602}; @@ -32,4 +33,5 @@ if (_containerlocked || _seclocked) then { ctrlSetFocus _ground; ctrlActivate _ground; }; -}; \ No newline at end of file +}; +_blocked