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
37 lines
914 B
Plaintext
37 lines
914 B
Plaintext
/*
|
|
* Author: commy2
|
|
* MarkerPlacement closed
|
|
*
|
|
* Arguments:
|
|
* 0: RscDisplayInsertMarker <DISPLAY>
|
|
* 1: CloseNumber (1 = ButtonOk) <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [onUnloadEvent] call ace_markers_fnc_placeMarker;
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
disableserialization;
|
|
params ["_display", "_closeNum"];
|
|
TRACE_2("params",_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 CBA_fnc_globalEvent;
|
|
|
|
}, []] call EFUNC(common,execNextFrame);
|
|
};
|