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 {
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user