structured logging
This commit is contained in:
17
functions/util/fn_getPlayerLogString.sqf
Normal file
17
functions/util/fn_getPlayerLogString.sqf
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
Function: milsim_fnc_getPlayerLogString
|
||||
|
||||
Author: IndigoFox
|
||||
|
||||
Description:
|
||||
Returns a string containing the player's name, UID and group name in 'key="value"' format.
|
||||
|
||||
Parameters:
|
||||
0: _playerObj <OBJECT> - The player object to get the string for.
|
||||
*/
|
||||
|
||||
params [["_playerObj", objNull]];
|
||||
if (isNull _playerObj) exitWith {
|
||||
"playerName=""ERROR"" playerUID=""ERROR"" playerGroup=""ERROR"""
|
||||
};
|
||||
format["playerName=""%1"" playerUID=""%2"" playerGroup=""%3""", name _playerObj, getPlayerUID _playerObj, groupId (group _playerObj)];
|
||||
Reference in New Issue
Block a user