Reproduction on Live servers show that the GearLock function (fn_GearLock.sqf) is not disabling the displayCtrl as it should.
Is the function executed at all ?
No Error displayed on screen.
Extracted mission file from the server to check locally.
By adding
hint "log"; at the beginning of
fn_GearLock.sqf I can confirm that the function is executed successfully.
Further testing shows that the function works fine until you interact with a body or with the content of the inventory.
Research in the Arma 3 Feedback Tracker revealed bug
T153325
"enable" was enabled for a short time then reverted because it caused unspecified problems with handling of controls. [i]ctrlEnable[/i] called from [i]onLoad[/i] EH is safe however. A bit inconvenient but at this stage any deep engine changes are not possible. Won't fix.
After talking to Arma 3 developers, this doesn't seem to be the right lead so I am doing more testing.
It appears that a new
Display 602 is being set on top of the current one each time you interact with an item.
To work around this issue, I have to
disable the Ground container Control (Config Tool > RscDisplayInventory > GroundContainer > Idc=632)
fn_GearLock.sqf
((findDisplay 602) displayCtrl 632) ctrlEnable false;