ACE3/addons/interact_menu/functions/fnc_keyDown.sqf

27 lines
451 B
Plaintext
Raw Normal View History

2015-02-21 20:11:03 +00:00
/*
* Author: NouberNou
* Handle interaction key down
*
* Argument:
* None
*
* Return value:
* true <BOOL>
*
* Public: No
*/
2015-01-18 18:38:27 +00:00
#include "script_component.hpp"
if(!GVAR(keyDown)) then {
closeDialog 0;
// Only interact with others if on foot
if (vehicle ACE_player != ACE_player) exitWith {};
2015-02-19 13:49:36 +00:00
GVAR(keyDown) = true;
GVAR(keyDownTime) = diag_tickTime;
["interactMenuOpened", [0]] call EFUNC(common,localEvent);
2015-01-18 18:38:27 +00:00
};
true