updates FBCB2, updates log fnc, adds comments

This commit is contained in:
2024-02-01 20:48:30 -08:00
parent c7d9298987
commit 1e4a5a79a8
12 changed files with 173 additions and 86 deletions

View File

@@ -18,7 +18,11 @@ params [
private _hash = createHashMapFromArray _data;
// Replace square brackets with round brackets to avoid parsing issues.
_message regexReplace ["\[", "("];
_message regexReplace ["\]", ")"];
private _json = [_hash] call CBA_fnc_encodeJSON;
_log = format ["[milsim] (%1) (%2) (%3) :: %4", _component, _fnc_scriptNameParent, _message, _json];
_log = format ["[milsim] [%1] [%2] [%3] :: %4", _component, _fnc_scriptNameParent, _message, _json];
diag_log text _log;