ACE3/addons/javelin/initKeybinds.sqf

30 lines
757 B
Plaintext
Raw Normal View History

2015-04-04 23:55:53 +00:00
// by commy2
2015-05-28 19:59:04 +00:00
["ACE3 Weapons", QGVAR(lockTarget), localize LSTRING(LockTarget),
2015-04-04 23:55:53 +00:00
{
if (GETGVAR(isLockKeyDown,false)) exitWith {false};
2015-04-30 20:02:20 +00:00
2015-04-04 23:55:53 +00:00
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;
2015-04-30 20:02:20 +00:00
2015-04-04 23:55:53 +00:00
// Statement
[ACE_player] call FUNC(lockKeyUp);
false
},
2015-11-30 15:45:20 +00:00
[15, [false, false, false]], false] call CBA_fnc_addKeybind; //Tab Key
2015-04-04 23:55:53 +00:00
2015-05-28 19:59:04 +00:00
["ACE3 Weapons", QGVAR(cycleFireMode), localize LSTRING(CycleFireMode),
2015-04-04 23:55:53 +00:00
{ false },
2015-04-30 20:02:20 +00:00
{
2015-04-04 23:55:53 +00:00
[ACE_player] call FUNC(cycleFireMode);
false
},
2015-11-30 15:45:20 +00:00
[15, [false, true, false]], false] call CBA_fnc_addKeybind; //Ctrl+Tab Key