2015-03-28 01:51:30 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* MarkerPlacement closed
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: RscDisplayInsertMarker <DISPLAY>
|
|
|
|
* 1: CloseNumber (1 = ButtonOk) <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* 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-03-28 01:51:30 +00:00
|
|
|
PARAMS_2(_display,_closeNum);
|
|
|
|
|
|
|
|
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), [
|
|
|
|
allMapMarkers select (count allMapMarkers - 1), [
|
|
|
|
GETGVAR(currentMarkerConfigName,""),
|
|
|
|
GETGVAR(currentMarkerColorConfigName,""),
|
2015-03-28 03:55:19 +00:00
|
|
|
GETGVAR(currentMarkerPosition,[]),
|
2015-03-28 01:51:30 +00:00
|
|
|
GETGVAR(currentMarkerAngle,0)
|
|
|
|
]
|
|
|
|
]] call EFUNC(common,globalEvent);
|
2015-03-28 04:24:11 +00:00
|
|
|
|
2015-03-28 03:55:19 +00:00
|
|
|
}, []] call EFUNC(common,execNextFrame);
|
2015-01-18 16:17:06 +00:00
|
|
|
};
|