mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
29 lines
486 B
Plaintext
29 lines
486 B
Plaintext
/*
|
|
* Author: NouberNou
|
|
* Handle interaction key down
|
|
*
|
|
* Argument:
|
|
* None
|
|
*
|
|
* Return value:
|
|
* true <BOOL>
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
if(!GVAR(keyDown)) then {
|
|
while {dialog} do {
|
|
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
|