ACE3/addons/common/functions/fnc_requestSyncedEvent.sqf

21 lines
497 B
Plaintext
Raw Normal View History

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