mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
108ff4f644
Regex used: \[(.+?),(.+?),(.+?)\]\s+call\s+E?FUNC\((common,)?(target|object)Event\) [$1,$3,$2] call CBA_fnc_targetEvent E?FUNC\((common,)?(server|global|local)Event\) CBA_fnc_$2Event E?FUNC\((common,)?(add|remove)EventHandler\) CBA_fnc_$2EventHandler
21 lines
726 B
Plaintext
21 lines
726 B
Plaintext
// by commy2
|
|
#include "script_component.hpp"
|
|
|
|
// recieve remote marker data
|
|
[QGVAR(setMarkerNetwork), {_this call DFUNC(setMarkerNetwork)}] call CBA_fnc_addEventHandler;
|
|
|
|
// recieve marker data for JIP
|
|
[QGVAR(setMarkerJIP), {_this call DFUNC(setMarkerJIP)}] call CBA_fnc_addEventHandler;
|
|
|
|
// request marker data for JIP
|
|
if (isMultiplayer && {!isServer} && {hasInterface}) then {
|
|
GVAR(localLogic) = (createGroup sideLogic) createUnit ["Logic", [0,0,0], [], 0, "NONE"];
|
|
[QGVAR(sendMarkersJIP), [GVAR(localLogic)]] call CBA_fnc_serverEvent;
|
|
};
|
|
|
|
GVAR(mapDisplaysWithDrawEHs) = [];
|
|
GVAR(currentMarkerPosition) = [];
|
|
GVAR(currentMarkerAngle) = 0;
|
|
GVAR(currentMarkerColorConfigName) = "";
|
|
GVAR(currentMarkerConfigName) = "";
|