ACE3/addons/interact_menu/functions/fnc_keyDownSelfAction.sqf

23 lines
410 B
Plaintext
Raw Normal View History

2015-02-21 20:11:03 +00:00
/*
* Author: NouberNou
* Handle self action key down
*
* Argument:
* None
*
* Return value:
* true <BOOL>
*
* Public: No
*/
2015-02-18 21:58:06 +00:00
#include "script_component.hpp"
if(!GVAR(keyDownSelfAction)) then {
2015-02-19 13:49:36 +00:00
GVAR(keyDownSelfAction) = true;
GVAR(keyDown) = false;
GVAR(keyDownTime) = diag_tickTime;
2015-02-18 21:58:06 +00:00
2015-02-19 13:49:36 +00:00
GVAR(selfMenuOffset) = [sin getDir ACE_player, cos getDir ACE_player, 0] vectorMultiply 2;
2015-02-18 21:58:06 +00:00
};
true