mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19 lines
494 B
Plaintext
19 lines
494 B
Plaintext
// by commy2
|
|
#include "script_component.hpp"
|
|
|
|
if (dialog) exitWith {
|
|
closeDialog 0;
|
|
};
|
|
|
|
if (isNull (findDisplay 1713999)) then {
|
|
"" call FUNC(openMenuSelf);
|
|
setMousePosition [0.5, 0.5];
|
|
} else {
|
|
(findDisplay 1713999) closeDisplay 1;
|
|
};
|
|
|
|
// Raise custom event. @todo: remove
|
|
[_player, "interactionMenuOpened", [_player, GVAR(Target), 1]] call EFUNC(common,callCustomEventHandlers);
|
|
// Raise ACE localEvent
|
|
["interactionMenuOpened", [_player, GVAR(Target), 1]] call EFUNC(common,localEvent);
|