fixed inventory opened script not returning bool

also block totally if both linked containers are locked
This commit is contained in:
vbawol 2017-02-28 13:30:08 -06:00
parent 66452060cb
commit 556506acbe

View File

@ -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};
@ -33,3 +34,4 @@ if (_containerlocked || _seclocked) then {
ctrlActivate _ground;
};
};
_blocked