EpicNinjaCheese Posted April 2, 2019 Posted April 2, 2019 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
chromium Posted August 22, 2021 Posted August 22, 2021 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. 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.
Recommended Posts