17 lines
529 B
Plaintext
17 lines
529 B
Plaintext
/*
|
|
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)]; |