ACE3/addons/common/functions/fnc_requestSyncedEvent.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

24 lines
550 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 <BOOL>
*
* Example:
* ["event"] call ace_common_fnc_requestSyncedEvent
*
* 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};
["ACEs", [_eventName, ACE_player]] call CBA_fnc_serverEvent;