2019-12-07 21:40:44 +00:00
|
|
|
["ACE3 Equipment", QGVAR(RangeCardDialogKey), LLSTRING(RangeCardDialogKey),
|
2015-05-28 17:17:29 +00:00
|
|
|
{
|
|
|
|
// Conditions: canInteract, canShow
|
2015-06-11 10:05:46 +00:00
|
|
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
2015-05-28 17:17:29 +00:00
|
|
|
if (GVAR(RangeCardOpened)) exitWith {
|
|
|
|
closeDialog 0;
|
|
|
|
false
|
2019-12-07 21:40:44 +00:00
|
|
|
};
|
2015-05-28 17:17:29 +00:00
|
|
|
if !(call FUNC(canShow)) exitWith {false};
|
|
|
|
// Statement
|
|
|
|
false call FUNC(openRangeCard);
|
|
|
|
true
|
|
|
|
},
|
|
|
|
{false},
|
|
|
|
[0, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // (empty default key)
|
|
|
|
|
2019-12-07 21:40:44 +00:00
|
|
|
["ACE3 Equipment", QGVAR(RangeCardCopyDialogKey), LLSTRING(RangeCardCopyDialogKey),
|
2015-05-28 17:17:29 +00:00
|
|
|
{
|
|
|
|
// Conditions: canInteract, canShowCopy
|
2015-06-11 10:05:46 +00:00
|
|
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
2015-05-28 17:17:29 +00:00
|
|
|
if (GVAR(RangeCardOpened)) exitWith {
|
|
|
|
closeDialog 0;
|
|
|
|
false
|
|
|
|
};
|
|
|
|
if !(call FUNC(canShowCopy)) exitWith {false};
|
|
|
|
// Statement
|
|
|
|
true call FUNC(openRangeCard);
|
|
|
|
true
|
|
|
|
},
|
|
|
|
{false},
|
2019-12-07 21:40:44 +00:00
|
|
|
[0, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // (empty default key)
|