ACE3/addons/common/functions/fnc_serverLog.sqf

25 lines
409 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
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
*/
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;
};