mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
d81d1b3176
Added: PFH Perfcounter tracking+output, use ENABLE_PERFORMANCE_COUNTERS in main\script_debug and then call ace_common_fnc_dumpPerformanceCounters
30 lines
634 B
Plaintext
30 lines
634 B
Plaintext
/*
|
|
* Author: Nou
|
|
*
|
|
* Execute a event only on the server.
|
|
*
|
|
* Argument:
|
|
* 0: Event name (string)
|
|
* 1: Event args (any)
|
|
*
|
|
* Return value:
|
|
* Nothing
|
|
*/
|
|
#include "script_component.hpp"
|
|
private ["_eventName", "_eventArgs"];
|
|
|
|
_eventName = _this select 0;
|
|
_eventArgs = _this select 1;
|
|
|
|
#ifdef DEBUG_EVENTS
|
|
diag_log text format[ARR_2("* Server Event: %1",_eventName)];
|
|
diag_log text format[ARR_2(" args=%1",_eventArgs)];
|
|
#endif
|
|
|
|
ACEg = [_eventName, _eventArgs];
|
|
if(!isServer) then {
|
|
publicVariableServer "ACEg";
|
|
} else {
|
|
["ACEg", ACEg] call FUNC(_handleNetEvent);
|
|
};
|