ACE3/addons/reload/initKeybinds.inc.sqf
BrettMayson 464ab0cefb
Tools - Add HEMTT SQF support and fix commas are not semicolons (#9663)
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: jonpas <jonpas33@gmail.com>
2023-12-07 03:20:47 +00:00

17 lines
685 B
Plaintext

#include "\a3\ui_f\hpp\defineDIKCodes.inc"
// Add Keybinds
["ACE3 Weapons", QGVAR(checkAmmo), LSTRING(checkAmmo), {
// Conditions: canInteract
if !([ACE_player, vehicle ACE_player, ["isNotInside", "isNotSwimming", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
// Ignore if controlling UAV (blocks radar keybind)
if (!isNull (ACE_controlledUAV param [0, objNull])) exitWith {false};
// Conditions: specific
if !(ACE_player call FUNC(canCheckAmmoSelf)) exitWith {false};
// Statement
[ACE_player, ACE_player] call FUNC(checkAmmo);
true
}, {false}, [DIK_R, [false, true, false]], false] call CBA_fnc_addKeybind; // Ctrl + R