mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
84eca899a9
Allows us to switch event names such that anyone currently using our old event framework and names won't have their code broken until it is deprecated in version 3.8.0
14 lines
414 B
Plaintext
14 lines
414 B
Plaintext
#include "script_component.hpp"
|
|
|
|
params ["_eventName", "_eventTarget", "_eventArgs"];
|
|
|
|
private _newName = getText (configFile >> "ACE_newEvents" >> _eventName);
|
|
if (_newName != "") then {
|
|
TRACE_2("Switching Names",_eventName,_newName);
|
|
_eventName = _newName;
|
|
};
|
|
|
|
[_eventName, _eventArgs, _eventTargets] call CBA_fnc_targetEvent;
|
|
|
|
ACE_DEPRECATED("ace_common_fnc_objectEvent","3.8.0","CBA_fnc_targetEvent");
|