mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
DAGR / Kestrel - Fix deviceKey condition (#8368)
* Fix DAGR keybind * Fix Kestrel keybind * Consistency with other deviceKey conditions
This commit is contained in:
parent
a4f24cbe3d
commit
d5328781db
@ -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));
|
||||
|
@ -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);
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user