mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ffaa195fe5
* Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team
35 lines
737 B
Plaintext
35 lines
737 B
Plaintext
/*
|
|
* Author: commy2
|
|
* Remove a map marker creation event handler.
|
|
*
|
|
* Arguments:
|
|
* 0: ID of the event handler <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [5] call ace_common_fnc_removeMapMarkerCreatedEventHandler
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_id"];
|
|
|
|
private _actionsVar = missionNamespace getVariable ["ACE_EventHandler_MapMarker", [-1, [], []]];
|
|
|
|
_actionsVar params ["_currentId", "_actionIDs", "_actions"];
|
|
|
|
_id = _actionIDs find _id;
|
|
|
|
if (_id == -1) exitWith {};
|
|
|
|
_actionIDs set [_id, -1];
|
|
_actionIDs = _actionIDs - [-1];
|
|
|
|
_actions set [_id, []];//{}
|
|
_actions = _actions - [[]];//[{}]
|
|
|
|
missionNamespace setVariable ["ACE_EventHandler_MapMarker", [_currentId, _actionIDs, _actions]];
|