DAGR / Kestrel - Fix deviceKey condition (#8368)

* Fix DAGR keybind

* Fix Kestrel keybind

* Consistency with other deviceKey conditions
This commit is contained in:
Salluci 2021-09-25 12:43:09 -03:00 committed by GitHub
parent a4f24cbe3d
commit d5328781db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ class CfgVehicles {
statement = QUOTE(call FUNC(menuInit));
showDisabled = 0;
icon = QPATHTOF(UI\DAGR_Icon.paa);
exceptions[] = {"isNotInside", "isNotSitting"};
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
class GVAR(toggle) {
displayName = CSTRING(ToggleDAGR);
condition = QUOTE([ARR_2(_player,'ACE_DAGR')] call EFUNC(common,hasItem));

View File

@ -35,7 +35,7 @@ private _conditonCode = {
};
private _toggleCode = {
// Conditions: canInteract
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {};
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
// Statement
[] call FUNC(toggleOverlay);

View File

@ -32,7 +32,7 @@ private _conditonCode = {
};
private _toggleCode = {
// Conditions: canInteract
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {};
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
// Statement
if (!GVAR(Overlay)) then {