Throw an event when the interact menu is closed

This commit is contained in:
Nicolás Badano 2015-03-10 23:36:28 -03:00
parent 14b97de930
commit e97467b3e3
2 changed files with 10 additions and 2 deletions

View File

@ -12,7 +12,11 @@
*/
#include "script_component.hpp"
GVAR(keyDown) = false;
if (GVAR(keyDown)) then {
GVAR(keyDown) = false;
["interactMenuClosed", [0]] call FUNC(localEvent);
};
if(GVAR(actionSelected)) then {
this = GVAR(selectedTarget);
_player = ACE_Player;

View File

@ -16,7 +16,11 @@ if (uiNamespace getVariable [QGVAR(cursorMenuOpened),false]) then {
closeDialog 0;
};
GVAR(keyDownSelfAction) = false;
if (GVAR(keyDownSelfAction)) then {
GVAR(keyDownSelfAction) = false;
["interactMenuClosed", [1]] call FUNC(localEvent);
};
if(GVAR(actionSelected)) then {
this = GVAR(selectedTarget);
_player = ACE_Player;