2015-03-28 01:51:30 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* MarkerPlacement closed
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: RscDisplayInsertMarker <DISPLAY>
|
|
|
|
* 1: CloseNumber (1 = ButtonOk) <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-22 12:08:35 +00:00
|
|
|
* None
|
2015-03-28 01:51:30 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [onUnloadEvent] call ace_markers_fnc_placeMarker;
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-18 16:17:06 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-03-28 03:55:19 +00:00
|
|
|
disableserialization;
|
2015-08-22 12:08:35 +00:00
|
|
|
params ["_display", "_closeNum"];
|
2015-08-23 19:25:41 +00:00
|
|
|
TRACE_2("params",_display,_closeNum);
|
2015-03-28 01:51:30 +00:00
|
|
|
|
|
|
|
if (_closeNum == 1) then {
|
2015-01-18 16:17:06 +00:00
|
|
|
// set and send marker data the next frame. the actual marker isn't created yet
|
2015-03-28 03:55:19 +00:00
|
|
|
[{
|
2015-03-28 01:51:30 +00:00
|
|
|
[QGVAR(setMarkerNetwork), [
|
2015-12-10 14:32:31 +00:00
|
|
|
allMapMarkers select (count allMapMarkers - 1), [
|
|
|
|
GETGVAR(currentMarkerConfigName,""),
|
|
|
|
GETGVAR(currentMarkerColorConfigName,""),
|
|
|
|
GETGVAR(currentMarkerPosition,[]),
|
|
|
|
GETGVAR(currentMarkerAngle,0)
|
|
|
|
]
|
2016-05-22 15:29:05 +00:00
|
|
|
]] call CBA_fnc_globalEvent;
|
2015-03-28 04:24:11 +00:00
|
|
|
|
2016-05-22 13:27:24 +00:00
|
|
|
}, []] call CBA_fnc_execNextFrame;
|
2015-01-18 16:17:06 +00:00
|
|
|
};
|