mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Apply the same pattern to ACE_Markers
This commit is contained in:
parent
b32732cad0
commit
b2c672e6c7
@ -9,9 +9,9 @@
|
||||
|
||||
// request marker data for JIP
|
||||
if (isMultiplayer && {!isServer} && {hasInterface}) then {
|
||||
private _logic = createGroup sideLogic createUnit ["Logic", [0,0,0], [], 0, "NONE"];
|
||||
|
||||
[QGVAR(sendMarkersJIP), [_logic]] call EFUNC(common,serverEvent);
|
||||
GVAR(localLogic) = sideLogic createUnit ["Logic", [0,0,0], [], 0, "NONE"];
|
||||
GVAR(localGroup) = createGroup GVAR(localLogic);
|
||||
[QGVAR(sendMarkersJIP), [GVAR(localLogic)]] call EFUNC(common,serverEvent);
|
||||
};
|
||||
|
||||
GVAR(mapDisplaysWithDrawEHs) = [];
|
||||
|
@ -21,5 +21,5 @@ TRACE_1("params",_logic);
|
||||
[
|
||||
QGVAR(setMarkerJIP),
|
||||
[_logic],
|
||||
[GETGVAR(allMapMarkers,[]), GETGVAR(allMapMarkersProperties,[]), _logic]
|
||||
[GETGVAR(allMapMarkers,[]), GETGVAR(allMapMarkersProperties,[])]
|
||||
] call EFUNC(common,targetEvent);
|
||||
|
@ -17,8 +17,8 @@
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
params ["_allMapMarkers", "_allMapMarkersProperties", "_logic"];
|
||||
TRACE_3("params",_allMapMarkers,_allMapMarkersProperties,_logic);
|
||||
params ["_allMapMarkers", "_allMapMarkersProperties"];
|
||||
TRACE_3("params",_allMapMarkers,_allMapMarkersProperties);
|
||||
|
||||
{
|
||||
private _index = _allMapMarkers find _x;
|
||||
@ -51,4 +51,7 @@ TRACE_3("params",_allMapMarkers,_allMapMarkersProperties,_logic);
|
||||
false
|
||||
} count allMapMarkers;
|
||||
|
||||
deleteVehicle _logic;
|
||||
deleteGroup GVAR(localGroup);
|
||||
GVAR(localGroup) = nil;
|
||||
deleteVehicle GVAR(localLogic);
|
||||
GVAR(localLogic) = nil;
|
||||
|
Loading…
Reference in New Issue
Block a user