Possibly close multiple dialogs when interact_menu is opened

This commit is contained in:
Nicolás Badano 2015-03-23 21:26:40 -03:00
parent 65d3e312d1
commit 70ffefde10
2 changed files with 6 additions and 2 deletions

View File

@ -13,7 +13,9 @@
#include "script_component.hpp"
if(!GVAR(keyDown)) then {
closeDialog 0;
while {dialog} do {
closeDialog 0;
};
// Only interact with others if on foot
if (vehicle ACE_player != ACE_player) exitWith {};

View File

@ -13,7 +13,9 @@
#include "script_component.hpp"
if(!GVAR(keyDownSelfAction)) then {
closeDialog 0;
while {dialog} do {
closeDialog 0;
};
GVAR(keyDownSelfAction) = true;
GVAR(keyDown) = false;