Jump to content

onPlayerTrySendChat(playerId, message, all) only returns true for all parameter


Recommended Posts

Posted (edited)

In all cases of multiplayer, hosting locally or through the dedicated server, onPlayerTrySendChat only returns true for the "all" parameter no matter if the player sends a chat message in "Allies" or "All". it does not work when in an aircraft or at least in game master (i have not tried other commander positions)
Code, dcs.log and video demonstration included from a dedicated server test.

local server = {}
function server.onPlayerTrySendChat(playerId, message, all)
    if all then
        log.write("CRCServerHook.lua", log.ERROR, "message sent to all")
    else
        log.write("CRCServerHook.lua", log.ERROR, "message sent to allies")
    end
end

DCS.setUserCallbacks(server)

dcs.log

 

Edited by Wizxrd
  • Like 1
  • Wizxrd changed the title to onPlayerTrySendChat(playerId, message, all) only returns true for all parameter
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...