ACE3/addons/interact_menu/functions/fnc_keyDown.sqf

24 lines
368 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 {
// 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;
2015-01-18 18:38:27 +00:00
};
true