mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
17 lines
685 B
Plaintext
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
|