Close dialogs when pressing the interaction k

This commit is contained in:
Nicolás Badano 2015-03-23 20:02:30 -03:00
parent 50f5e2c858
commit f64092f09c
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -13,6 +13,8 @@
#include "script_component.hpp" #include "script_component.hpp"
if(!GVAR(keyDownSelfAction)) then { if(!GVAR(keyDownSelfAction)) then {
closeDialog 0;
GVAR(keyDownSelfAction) = true; GVAR(keyDownSelfAction) = true;
GVAR(keyDown) = false; GVAR(keyDown) = false;
GVAR(keyDownTime) = diag_tickTime; GVAR(keyDownTime) = diag_tickTime;