change logPlayerInventory to return lines, which handlers send to CBA ev

This commit is contained in:
2024-01-29 13:48:35 -08:00
parent f77e418ac8
commit cada98e15a
4 changed files with 46 additions and 11 deletions

View File

@@ -39,11 +39,13 @@ addMissionEventHandler ["HandleChatMessage",
["ace_arsenal_displayClosed", {
player remoteExec["milsim_fnc_logPlayerInventory", 0];
private _lines = [player] call milsim_fnc_logPlayerInventory;
["milsim_logText", [_lines]] call CBA_fnc_globalEvent;
}] call CBA_fnc_addEventHandler;
[missionNamespace, "arsenalClosed", {
player remoteExec["milsim_fnc_logPlayerInventory", 0];
private _lines = [player] call milsim_fnc_logPlayerInventory;
["milsim_logText", [_lines]] call CBA_fnc_globalEvent;
}] call BIS_fnc_addScriptedEventHandler;
diag_log text "[MILSIM] (client) event handlers bound";