2015-02-11 13:51:21 +00:00
|
|
|
// by commy2
|
|
|
|
|
2015-03-05 08:00:56 +00:00
|
|
|
["ACE3", QGVAR(AzimuthKey), localize "STR_ACE_Vector_AzimuthKey",
|
|
|
|
{
|
|
|
|
// Conditions: canInteract
|
|
|
|
_exceptions = [];
|
|
|
|
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
|
|
// Conditions: specific
|
|
|
|
if !(currentWeapon ACE_player == "ACE_Vector" && {ACE_player == cameraOn} && {cameraView == "GUNNER"}) exitWith {false};
|
|
|
|
|
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);
|
|
|
|
true
|
|
|
|
},
|
|
|
|
{
|
2015-03-05 08:46:24 +00:00
|
|
|
// prevent holding down
|
|
|
|
GVAR(isDownStateKey1) = false;
|
|
|
|
|
2015-03-05 08:00:56 +00:00
|
|
|
// Conditions: canInteract
|
|
|
|
_exceptions = [];
|
|
|
|
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
|
|
|
|
|
|
// Statement
|
|
|
|
["azimuth"] call FUNC(onKeyUp);
|
|
|
|
true
|
|
|
|
},
|
|
|
|
[15, [false, false, false]], false, 0] call CBA_fnc_addKeybind; //Tab Key
|
|
|
|
|
|
|
|
|
|
|
|
["ACE3", QGVAR(DistanceKey), localize "STR_ACE_Vector_DistanceKey",
|
|
|
|
{
|
|
|
|
// Conditions: canInteract
|
|
|
|
_exceptions = [];
|
|
|
|
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
|
|
// Conditions: specific
|
|
|
|
if !(currentWeapon ACE_player == "ACE_Vector" && {ACE_player == cameraOn} && {cameraView == "GUNNER"}) exitWith {false};
|
|
|
|
|
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);
|
|
|
|
true
|
|
|
|
},
|
|
|
|
{
|
2015-03-05 08:46:24 +00:00
|
|
|
// prevent holding down
|
|
|
|
GVAR(isDownStateKey2) = false;
|
|
|
|
|
2015-03-05 08:00:56 +00:00
|
|
|
// Conditions: canInteract
|
|
|
|
_exceptions = [];
|
|
|
|
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
|
|
|
|
|
|
// Statement
|
|
|
|
["distance"] call FUNC(onKeyUp);
|
|
|
|
true
|
|
|
|
},
|
2015-03-05 08:46:24 +00:00
|
|
|
[19, [false, false, false]], false] call CBA_fnc_addKeybind; //R Key
|