ACE3/addons/common/functions/fnc_requestSyncedEvent.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

21 lines
497 B
Plaintext

/*
* Author: jaynus
* Send a request to synchronize an event name from the client->server. Execute on client only.
*
* Arguments:
* 0: eventName <STRING>
*
* Return Value:
* Boolean of success
*
* Public: No
*/
#include "script_component.hpp"
params ["_eventName"];
// Only JIP machines on initialization send this off, requesting sync on events with the serverCommand
if (isServer) exitWith {false};
["SEH_s", [_eventName, ACE_player]] call CBA_fnc_serverEvent;