mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
30 lines
780 B
Plaintext
30 lines
780 B
Plaintext
// by commy2
|
|
|
|
["ACE3", QGVAR(lockTarget), localize "STR_ACE_WEP_JAVELIN_LockTarget",
|
|
{
|
|
if (GETGVAR(isLockKeyDown,false)) exitWith {false};
|
|
|
|
GVAR(isLockKeyDown) = true;
|
|
|
|
// Statement
|
|
[ACE_player] call FUNC(lockKeyDown);
|
|
// Return false so it doesn't block the rest weapon action
|
|
false
|
|
},
|
|
{
|
|
// prevent holding down
|
|
GVAR(isLockKeyDown) = false;
|
|
|
|
// Statement
|
|
[ACE_player] call FUNC(lockKeyUp);
|
|
false
|
|
},
|
|
[15, [false, false, false]], false] call cba_fnc_addKeybind; //Tab Key
|
|
|
|
["ACE3", QGVAR(cycleFireMode), localize "STR_ACE_WEP_JAVELIN_CycleFireMode",
|
|
{ false },
|
|
{
|
|
[ACE_player] call FUNC(cycleFireMode);
|
|
false
|
|
},
|
|
[15, [false, true, false]], false] call cba_fnc_addKeybind; //Shift+Tab Key |