mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
590 B
Plaintext
25 lines
590 B
Plaintext
/*
|
|
* Author: jaynus
|
|
*
|
|
* Handles a server-side request for synchronization ALL events on JIP to a client.
|
|
*
|
|
* Argument:
|
|
* 0: client (object)
|
|
*
|
|
* Return value:
|
|
* Boolean of success
|
|
*/
|
|
//#define DEBUG_MODE_FULL
|
|
#include "script_component.hpp"
|
|
PARAMS_1(_client);
|
|
|
|
{
|
|
private["_eventName", "_eventEntry", "_eventLog"];
|
|
_eventName = _x;
|
|
_eventEntry = HASH_GET(GVAR(syncedEvents),_eventName);
|
|
_eventLog = _eventEntry select 1;
|
|
|
|
["SEH_s", _client, [_eventName, _eventLog] ] call FUNC(targetEvent);
|
|
} forEach (GVAR(syncedEvents) select 0);
|
|
|
|
true |