mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Regex used: \[(.+?),(.+?),(.+?)\]\s+call\s+E?FUNC\((common,)?(target|object)Event\) [$1,$3,$2] call CBA_fnc_targetEvent E?FUNC\((common,)?(server|global|local)Event\) CBA_fnc_$2Event E?FUNC\((common,)?(add|remove)EventHandler\) CBA_fnc_$2EventHandler
21 lines
499 B
Plaintext
21 lines
499 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;
|