ACE3/addons/common/functions/fnc_serverLog.sqf

25 lines
406 B
Plaintext
Raw Normal View History

2015-09-19 18:34:07 +00:00
/*
* Author: esteldunedain
* Log a RPT messaged on just the server
2015-09-19 18:34:07 +00:00
*
* Arguments:
* 0: Text to display <STRING>
2015-09-19 18:34:07 +00:00
*
* Return Value:
* None
*
* Example:
* ["x happened"] call ace_common_fnc_serverLog;
*
2015-09-19 18:34:07 +00:00
* Public: no
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
params [["_msg", "", [""]]];
if (isServer) then {
diag_log text _msg;
} else {
2016-06-03 01:13:09 +00:00
[QGVAR(serverLog), _this] call CBA_fnc_serverEvent;
};