ACE3/addons/common/functions/fnc__handleRequestAllSyncedEvents.sqf
SilentSpike 1b6bbff139 Revert event names for synced events framework
Keeping these names as short as possible for network traffic purposes.
2016-06-04 09:46:50 +01:00

26 lines
518 B
Plaintext

/*
* Author: jaynus
* Handles a server-side request for synchronization ALL events on JIP to a client.
*
* Arguments:
* 0: client <OBJECT>
*
* Return Value:
* Event is successed <BOOL>
*
* Public: No
*/
#include "script_component.hpp"
params ["_client"];
{
private _eventEntry = HASH_GET(GVAR(syncedEvents),_x);
_eventEntry params ["", "_eventLog"];
["SEH_s", [_x, _eventLog], _client] call CBA_fnc_targetEvent;
false
} count (GVAR(syncedEvents) select 0);
true