2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-05-30 16:37:03 +00:00
|
|
|
/*
|
|
|
|
* Author: jaynus
|
|
|
|
* Send a request to synchronize an event name from the client->server. Execute on client only.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: eventName <STRING>
|
2016-06-09 12:24:45 +00:00
|
|
|
*
|
2016-05-30 16:37:03 +00:00
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* Boolean of success <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* ["event"] call ace_common_fnc_requestSyncedEvent
|
2016-05-30 16:37:03 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_eventName"];
|
|
|
|
|
|
|
|
// Only JIP machines on initialization send this off, requesting sync on events with the serverCommand
|
|
|
|
if (isServer) exitWith {false};
|
|
|
|
|
2016-06-09 12:24:45 +00:00
|
|
|
["ACEs", [_eventName, ACE_player]] call CBA_fnc_serverEvent;
|