/* * Author: jaynus * Call and propegate a synced event * * Arguments: * 0: Name * 1: Arguments * 2: TTL [Optional] for this specific event call * * Return Value: * Boolean of success * * Public: No */ #include "script_component.hpp" params ["_name", "_args", ["_ttl", 0]]; if (!HASH_HASKEY(GVAR(syncedEvents),_name)) exitWith { ACE_LOGERROR_1("Synced event key [%1] not found (syncedEvent).", _name); false }; private _eventData = [_name, _args, _ttl]; ["ace_SEH", _eventData] call CBA_fnc_globalEvent;