ACE3/addons/interact_menu/functions/fnc_keyDown.sqf
2015-03-23 20:02:30 -03:00

27 lines
451 B
Plaintext

/*
* Author: NouberNou
* Handle interaction key down
*
* Argument:
* None
*
* Return value:
* true <BOOL>
*
* Public: No
*/
#include "script_component.hpp"
if(!GVAR(keyDown)) then {
closeDialog 0;
// Only interact with others if on foot
if (vehicle ACE_player != ACE_player) exitWith {};
GVAR(keyDown) = true;
GVAR(keyDownTime) = diag_tickTime;
["interactMenuOpened", [0]] call EFUNC(common,localEvent);
};
true