ACE3/addons/common/functions/fnc_serverLog.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

25 lines
409 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: esteldunedain
* Log a RPT messaged on just the server
*
* Arguments:
* 0: Text to display <STRING>
*
* Return Value:
* None
*
* Example:
* ["x happened"] call ace_common_fnc_serverLog;
*
* Public: no
*/
params [["_msg", "", [""]]];
if (isServer) then {
diag_log text _msg;
} else {
[QGVAR(serverLog), _this] call CBA_fnc_serverEvent;
};