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 {
|
2015-03-24 00:26:40 +00:00
|
|
|
while {dialog} do {
|
|
|
|
closeDialog 0;
|
|
|
|
};
|
2015-02-28 20:48:46 +00:00
|
|
|
|
|
|
|
// 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-03-10 20:48:08 +00:00
|
|
|
|
2015-03-11 17:45:01 +00:00
|
|
|
["interactMenuOpened", [0]] call EFUNC(common,localEvent);
|
2015-01-18 18:38:27 +00:00
|
|
|
};
|
|
|
|
true
|