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 { if !(isNull _sec) then {
_seclocked = (locked _sec in [2, 3] || _sec getVariable['EPOCH_Locked', false]); _seclocked = (locked _sec in [2, 3] || _sec getVariable['EPOCH_Locked', false]);
}; };
if (_containerlocked || _seclocked) then { _blocked = (_containerlocked && _seclocked);
if (!_blocked && _containerlocked || _seclocked) then {
[] spawn { [] spawn {
disableSerialization; disableSerialization;
waitUntil {!isNull findDisplay 602}; waitUntil {!isNull findDisplay 602};
@ -32,4 +33,5 @@ if (_containerlocked || _seclocked) then {
ctrlSetFocus _ground; ctrlSetFocus _ground;
ctrlActivate _ground; ctrlActivate _ground;
}; };
}; };
_blocked