2015-05-28 19:59:04 +00:00
|
|
|
["ACE3 Equipment", QGVAR(LaserCodeUp), localize LSTRING(laserCodeUp),
|
2015-05-01 18:31:37 +00:00
|
|
|
{
|
2015-07-30 20:37:08 +00:00
|
|
|
if( EGVAR(laser_selfdesignate,active)
|
|
|
|
||
|
2015-05-01 18:31:37 +00:00
|
|
|
{ (currentWeapon ACE_player) == "Laserdesignator" && (call CBA_fnc_getFoV) select 1 > 5 } // If laserdesignator & FOV, we are in scope.
|
2015-07-30 20:37:08 +00:00
|
|
|
||
|
2015-05-01 18:31:37 +00:00
|
|
|
{ [ACE_player] call FUNC(unitTurretCanLockLaser) }
|
|
|
|
) then {
|
|
|
|
[] call FUNC(keyLaserCodeUp);
|
|
|
|
};
|
|
|
|
},
|
|
|
|
{false},
|
|
|
|
[16, [false, true, true]], false, 0] call CBA_fnc_addKeybind; // (ALT+CTRL+Q)
|
|
|
|
|
2015-05-28 19:59:04 +00:00
|
|
|
["ACE3 Equipment", QGVAR(LaserCodeDown), localize LSTRING(laserCodeDown),
|
2015-05-01 18:31:37 +00:00
|
|
|
{
|
2015-07-30 20:37:08 +00:00
|
|
|
if( EGVAR(laser_selfdesignate,active)
|
|
|
|
||
|
2015-05-01 18:31:37 +00:00
|
|
|
{ (currentWeapon ACE_player) == "Laserdesignator" && (call CBA_fnc_getFoV) select 1 > 5 } // If laserdesignator & FOV, we are in scope.
|
2015-07-30 20:37:08 +00:00
|
|
|
||
|
2015-05-01 18:31:37 +00:00
|
|
|
{ [ACE_player] call FUNC(unitTurretCanLockLaser) }
|
|
|
|
) then {
|
|
|
|
[] call FUNC(keyLaserCodeDown);
|
|
|
|
};
|
|
|
|
},
|
|
|
|
{false},
|
2015-07-30 20:37:08 +00:00
|
|
|
[18, [false, true, true]], false, 0] call CBA_fnc_addKeybind; // (ALT+CTRL+E)
|