mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
fixed inventory opened script not returning bool
also block totally if both linked containers are locked
This commit is contained in:
parent
66452060cb
commit
556506acbe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user