ACE3/addons/interaction/functions/fn_onButtonDown.sqf

16 lines
455 B
Plaintext
Raw Normal View History

2015-01-11 19:32:51 +00:00
// by commy2
2015-01-11 23:13:47 +00:00
#include "script_component.hpp"
2015-01-11 19:32:51 +00:00
if (dialog) exitWith {
closeDialog 0;
};
if (isNull (findDisplay 1713999)) then {
2015-01-11 23:13:47 +00:00
if (AGM_player == vehicle AGM_player) then {"" call FUNC(openMenu)} else {[AGM_player, vehicle AGM_player] call FUNC(openMenuSelectUI)};
2015-01-11 19:32:51 +00:00
setMousePosition [0.5, 0.5];
} else {
(findDisplay 1713999) closeDisplay 1;
};
2015-01-11 23:13:47 +00:00
[_player, "interactionMenuOpened", [_player, GVAR(Target), 0]] call EFUNC(core,callCustomEventHandlers);