2015-06-03 14:26:30 +00:00
|
|
|
|
2019-12-07 21:40:44 +00:00
|
|
|
["ACE3 Equipment", QGVAR(DistanceKey), LLSTRING(PowerButtonKey),
|
2015-06-03 14:26:30 +00:00
|
|
|
{
|
|
|
|
// Conditions: canInteract
|
|
|
|
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
|
|
|
// Conditions: specific
|
|
|
|
if !(GVAR(active)) exitWith {false};
|
|
|
|
if (currentWeapon ACE_player != "ACE_Yardage450" || cameraView != "GUNNER") exitWith {false};
|
2016-05-03 00:32:44 +00:00
|
|
|
|
2015-06-03 14:26:30 +00:00
|
|
|
// Statement
|
|
|
|
if !(GVAR(powerButtonPressed)) then {
|
|
|
|
GVAR(powerButtonPressed) = true;
|
|
|
|
call FUNC(acquireTarget);
|
|
|
|
};
|
|
|
|
true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Conditions: canInteract
|
|
|
|
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
|
|
|
// Conditions: specific
|
|
|
|
if (currentWeapon ACE_player != "ACE_Yardage450" || cameraView != "GUNNER") exitWith {false};
|
2016-05-03 00:32:44 +00:00
|
|
|
|
2015-06-03 14:26:30 +00:00
|
|
|
// Statement
|
|
|
|
GVAR(powerButtonPressed) = false;
|
|
|
|
call FUNC(turnOn);
|
|
|
|
true
|
|
|
|
},
|
|
|
|
[19, [false, false, false]], false] call CBA_fnc_addKeybind; //R Key
|