2016-05-30 16:37:03 +00:00
|
|
|
// by commy2
|
|
|
|
|
|
|
|
["ACE3 Weapons", QGVAR(lockTarget), localize LSTRING(LockTarget),
|
|
|
|
{
|
|
|
|
if (GETGVAR(isLockKeyDown,false)) exitWith {false};
|
|
|
|
|
|
|
|
GVAR(isLockKeyDown) = true;
|
2016-11-15 18:15:25 +00:00
|
|
|
TRACE_1("lock key down",GVAR(isLockKeyDown));
|
2016-05-30 16:37:03 +00:00
|
|
|
|
|
|
|
// Return false so it doesn't block the rest weapon action
|
|
|
|
false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// prevent holding down
|
|
|
|
GVAR(isLockKeyDown) = false;
|
2016-11-15 18:15:25 +00:00
|
|
|
TRACE_1("lock key up",GVAR(isLockKeyDown));
|
2016-05-30 16:37:03 +00:00
|
|
|
|
|
|
|
false
|
|
|
|
},
|
|
|
|
[15, [false, false, false]], false] call CBA_fnc_addKeybind; //Tab Key
|