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-12 04:20:02 +00:00
|
|
|
if (ACE_player == vehicle ACE_player) then {"" call FUNC(openMenu)} else {[ACE_player, vehicle ACE_player] call FUNC(openMenuSelectUI)};
|
2015-01-11 19:32:51 +00:00
|
|
|
setMousePosition [0.5, 0.5];
|
|
|
|
} else {
|
|
|
|
(findDisplay 1713999) closeDisplay 1;
|
|
|
|
};
|
|
|
|
|
2015-01-16 15:45:15 +00:00
|
|
|
// Raise custom event. @todo: remove
|
2015-01-13 05:14:27 +00:00
|
|
|
[_player, "interactionMenuOpened", [_player, GVAR(Target), 0]] call EFUNC(common,callCustomEventHandlers);
|
2015-01-16 15:45:15 +00:00
|
|
|
// Raise ACE localEvent
|
|
|
|
["interactionMenuOpened", [_player, GVAR(Target), 0]] call EFUNC(common,localEvent);
|