Merge pull request #1260 from acemod/toggleDevices

ATragMX/Kestrel 4500 dialogs can be toggled on/off with keybinds.
This commit is contained in:
ulteq 2015-05-17 11:23:56 +02:00
commit 9e8283ebab
2 changed files with 8 additions and 3 deletions

View File

@ -2,7 +2,10 @@
{
// Conditions: canInteract
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
if (GVAR(active)) exitWith {false};
if (GVAR(active)) exitWith {
closeDialog 0;
false
};
// Statement
[] call FUNC(create_dialog);
false

View File

@ -2,8 +2,10 @@
{
// Conditions: canInteract
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
if(GVAR(Kestrel4500)) exitWith { false };
if (GVAR(Kestrel4500)) exitWith {
closeDialog 0;
false
};
// Statement
[] call FUNC(createKestrelDialog);
false