GreyEcho Posted March 4, 2017 Posted March 4, 2017 Hi ! I'm designing a very dialog intensive single player mission for the Mirage 2000. Since it has a lot of sound files that have to be played at very precise time intervals, I decided to try to use a Lua script rather than making a huge number of triggers. Here is my code, which is scheduled to execute at a precise moment : Unit.getByName("Volt"):getController():setCommand({ id = "transmitMessage", params = { file = "l10n/DEFAULT/Noise.ogg", duration = 10, subtitle = "Noise", loop = false, } })And I get the following message error in dcs.log: Unknown command "transmitMessage" in function 'setCommand'My understanding is that the command transmitMessage isn't recognized by DCS, and sure enough, it isn't mentioned in the (very outdated but official) DCS Wiki. It is however listed in the more recent Hoggit wiki. So, my questions are the following: Is transmitMessage a command recognized by DCS? If not, I'll use the singleton function trigger.action.radioTransmission(). Is there a way to add a subtitle with this?� Thank you for your help ! Intel i5-2500k - Gigabyte P67X-UD3-B3 - AMD HD7950 - RAM 12Go - SSD 250Go - Acer FHD Screen - Logitech G940 - TIR5 - FC3 - M-2000C - A-10C [sIGPIC][/sIGPIC]
Chump Posted March 5, 2017 Posted March 5, 2017 (edited) GreyEcho, I believe what you are looking for is TransmitMessage, not transmitMessage for the command ID. Also, trigger.action.radioTransmission() does not handle subtitles, as far as I know. You would need to combine it with one of the trigger.action.outText* methods. Here is the only documentation I could find with the command ID in Pascal case instead of camel case: http://dcs.readthedocs.io/en/latest/task.html#dcs.task.TransmitMessage Edited March 5, 2017 by Chump Added link
GreyEcho Posted March 5, 2017 Author Posted March 5, 2017 Yep, that worked very well, thank you! I edited the hoggit wiki accordingly�. Intel i5-2500k - Gigabyte P67X-UD3-B3 - AMD HD7950 - RAM 12Go - SSD 250Go - Acer FHD Screen - Logitech G940 - TIR5 - FC3 - M-2000C - A-10C [sIGPIC][/sIGPIC]
Recommended Posts