ACE3/addons/laserpointer/initKeybinds.sqf

14 lines
504 B
Plaintext
Raw Normal View History

2015-04-14 11:24:17 +00:00
// by commy2
2015-04-30 20:39:33 +00:00
["ACE3 Weapons", QGVAR(switchLaserLightMode), localize "STR_ACE_Laserpointer_switchLaserLight",
2015-04-14 11:24:17 +00:00
{
// Conditions: canInteract
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
// Conditions: specific
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
[ACE_player, currentWeapon ACE_player] call FUNC(switchLaserLightMode);
true
},
{false}, [38, [false, true, false]], false] call CBA_fnc_addKeybind;