mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
05d30c5573
* convert log macros to cba versions * Add changes to AB * remove obsolete macro
27 lines
572 B
Plaintext
27 lines
572 B
Plaintext
/*
|
|
* Author: jaynus
|
|
* Remove a synced event handler
|
|
*
|
|
* Arguments:
|
|
* 0: Name <STRING>
|
|
*
|
|
* Return Value:
|
|
* Boolean of success
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_name"];
|
|
|
|
if !([GVAR(syncedEvents), _name] call CBA_fnc_hashHasKey) exitWith {
|
|
ERROR_1("Synced event key [%1] not found (removeSyncedEventHandler).", _name);
|
|
false
|
|
};
|
|
|
|
private _data = [GVAR(syncedEvents), _name] call CBA_fnc_hashGet;
|
|
_data params ["", "", "", "_eventId"];
|
|
|
|
[_eventId] call CBA_fnc_removeEventHandler;
|
|
[GVAR(syncedEvents), _name] call CBA_fnc_hashRem;
|