ACE3/addons/interact_menu/functions/fnc_keyDown.sqf
PabstMirror 858e5def5a Interact menu event consistant
"interactMenuOpened",  to match event from #191
2015-03-11 12:45:01 -05:00

26 lines
432 B
Plaintext

/*
* Author: NouberNou
* Handle interaction key down
*
* Argument:
* None
*
* Return value:
* true <BOOL>
*
* Public: No
*/
#include "script_component.hpp"
if(!GVAR(keyDown)) then {
// 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