ACE3/addons/common/functions/fnc__handleRequestAllSyncedEvents.sqf
2015-09-18 07:42:10 +02:00

27 lines
540 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", "_eventLog"];
_eventEntry = HASH_GET(GVAR(syncedEvents),_x);
_eventLog = _eventEntry select 1;
["SEH_s", _client, [_x, _eventLog]] call FUNC(targetEvent);
} forEach (GVAR(syncedEvents) select 0);
true