mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
451 B
Plaintext
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
|