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...
Posted

Tried here and I can confirm also. Did you found a solution for this issue? I would like to prevent the chat message being wrote into the chat if a defined code is identified.

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

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

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