ACE3/addons/markers/functions/fnc_placeMarker.sqf
PabstMirror aa5a580645 Cleanup
2015-03-27 23:24:11 -05:00

37 lines
842 B
Plaintext

/*
* 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
*/
#include "script_component.hpp"
disableserialization;
PARAMS_2(_display,_closeNum);
if (_closeNum == 1) then {
// set and send marker data the next frame. the actual marker isn't created yet
[{
[QGVAR(setMarkerNetwork), [
allMapMarkers select (count allMapMarkers - 1), [
GETGVAR(currentMarkerConfigName,""),
GETGVAR(currentMarkerColorConfigName,""),
GETGVAR(currentMarkerPosition,[]),
GETGVAR(currentMarkerAngle,0)
]
]] call EFUNC(common,globalEvent);
}, []] call EFUNC(common,execNextFrame);
};