2019-05-27 15:46:07 +00:00
|
|
|
["ACE3 Equipment", QGVAR(AzimuthKey), localize LSTRING(AzimuthKey), {
|
2015-03-05 08:00:56 +00:00
|
|
|
// Conditions: canInteract
|
2015-04-12 10:03:49 +00:00
|
|
|
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
2015-03-05 08:00:56 +00:00
|
|
|
// Conditions: specific
|
2019-05-27 15:46:07 +00:00
|
|
|
if !(currentWeapon ACE_player isKindOf ["ACE_Vector", configFile >> "CfgWeapons"] && {cameraView == "GUNNER"}) exitWith {false};
|
2015-03-05 08:00:56 +00:00
|
|
|
|
2015-03-05 08:46:24 +00:00
|
|
|
// prevent holding down
|
|
|
|
if (GETGVAR(isDownStateKey1,false)) exitWith {false};
|
|
|
|
GVAR(isDownStateKey1) = true;
|
|
|
|
|
2015-03-05 08:00:56 +00:00
|
|
|
// Statement
|
|
|
|
["azimuth"] call FUNC(onKeyDown);
|
2015-03-18 16:53:26 +00:00
|
|
|
false
|
2019-05-27 15:46:07 +00:00
|
|
|
}, {
|
2015-03-05 08:46:24 +00:00
|
|
|
// prevent holding down
|
|
|
|
GVAR(isDownStateKey1) = false;
|
|
|
|
|
2015-03-05 08:00:56 +00:00
|
|
|
// Conditions: canInteract
|
2015-04-12 10:03:49 +00:00
|
|
|
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
2015-03-05 08:00:56 +00:00
|
|
|
|
|
|
|
// Statement
|
|
|
|
["azimuth"] call FUNC(onKeyUp);
|
2015-03-18 16:53:26 +00:00
|
|
|
false
|
2019-05-27 15:46:07 +00:00
|
|
|
}, [DIK_TAB, [false, false, false]], false, 0] call CBA_fnc_addKeybind;
|
2015-03-05 08:00:56 +00:00
|
|
|
|
2019-05-27 15:46:07 +00:00
|
|
|
["ACE3 Equipment", QGVAR(DistanceKey), localize LSTRING(DistanceKey), {
|
2015-03-05 08:00:56 +00:00
|
|
|
// Conditions: canInteract
|
2015-04-12 10:03:49 +00:00
|
|
|
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
2015-03-05 08:00:56 +00:00
|
|
|
// Conditions: specific
|
2019-05-27 15:46:07 +00:00
|
|
|
if !(currentWeapon ACE_player isKindOf ["ACE_Vector", configFile >> "CfgWeapons"] && {cameraView == "GUNNER"}) exitWith {false};
|
2015-03-05 08:00:56 +00:00
|
|
|
|
2015-03-05 08:46:24 +00:00
|
|
|
// prevent holding down
|
|
|
|
if (GETGVAR(isDownStateKey2,false)) exitWith {false};
|
|
|
|
GVAR(isDownStateKey2) = true;
|
|
|
|
|
2015-03-05 08:00:56 +00:00
|
|
|
// Statement
|
|
|
|
["distance"] call FUNC(onKeyDown);
|
2015-03-18 16:53:26 +00:00
|
|
|
false
|
2019-05-27 15:46:07 +00:00
|
|
|
}, {
|
2015-03-05 08:46:24 +00:00
|
|
|
// prevent holding down
|
|
|
|
GVAR(isDownStateKey2) = false;
|
|
|
|
|
2015-03-05 08:00:56 +00:00
|
|
|
// Conditions: canInteract
|
2015-04-12 10:03:49 +00:00
|
|
|
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
2015-03-05 08:00:56 +00:00
|
|
|
|
|
|
|
// Statement
|
|
|
|
["distance"] call FUNC(onKeyUp);
|
2015-03-18 16:53:26 +00:00
|
|
|
false
|
2019-05-27 15:46:07 +00:00
|
|
|
}, [DIK_R, [false, false, false]], false, 0] call CBA_fnc_addKeybind;
|