2015-04-14 11:24:17 +00:00
|
|
|
// by commy2
|
|
|
|
|
2015-05-28 19:59:04 +00:00
|
|
|
["ACE3 Weapons", QGVAR(switchLaserLightMode), localize LSTRING(switchLaserLight),
|
2015-04-14 11:24:17 +00:00
|
|
|
{
|
|
|
|
// Conditions: canInteract
|
2015-06-13 20:08:13 +00:00
|
|
|
if !([ACE_player, objNull, ["isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
2015-04-14 11:24:17 +00:00
|
|
|
// Conditions: specific
|
2016-02-20 21:41:24 +00:00
|
|
|
if !([ACE_player] call CBA_fnc_canUseWeapon) exitWith {false};
|
2015-04-14 11:24:17 +00:00
|
|
|
|
|
|
|
[ACE_player, currentWeapon ACE_player] call FUNC(switchLaserLightMode);
|
|
|
|
true
|
|
|
|
},
|
|
|
|
{false}, [38, [false, true, false]], false] call CBA_fnc_addKeybind;
|