ACE3/addons/common/functions/fnc_globalEvent.sqf

20 lines
408 B
Plaintext
Raw Normal View History

/*
* Author: Nou
*
* Execute a global event on all clients, including self.
*
* Argument:
* 0: Event name (string)
* 1: Event args (any)
*
* Return value:
* Nothing
*/
#include "script_component.hpp"
2015-05-14 22:12:40 +00:00
//IGNORE_PRIVATE_WARNING("_handleNetEvent");
2015-05-14 18:06:06 +00:00
PARAMS_2(_eventName,_eventArgs);
ACEg = [_eventName, _eventArgs];
publicVariable "ACEg";
["ACEg", ACEg] call FUNC(_handleNetEvent);