Jump to content

Recommended Posts

Posted

I am currently trying to use DCS lua API to manage my server.

 

When the onPlayerTrySendChat() function is called i handle it in a lua script.

 

According to the documentation located at 'DCS World OpenBeta/API/DCS_ControlAPI.html', if you return "" it should remove the message from being sent at all

 

the code that i am talking about is as follows (i have simplified the code for space reasons):

-- start of code snippet

 

object.onPlayerTrySendChat = function()

return ""

end

 

DCS.setUserCallbacks(object)

 

-- end of code snippet

 

Instead of "dropping the message" as your dcs api file says, it does one of two things;

- Drop the message for the host only

- Does not do anything altogether

  • 2 years later...
  • 2 weeks later...
  • Recently Browsing   0 members

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