NightFighter Posted December 2, 2020 Posted December 2, 2020 Three possibly novice questions; 1. How to add audio to single player mission. I am using a text to speech for custom radio calls and added in some static. I got them into mp3 format, but how do I put it in the misison and link it to a proximity or timers command? 2. I have searched the editor high and low, have not been able to find the runway lights. Where would they be? 3. When I have found the lights, how do I hook them up for a flare from the player to activate them on/off. Thanks.
Sketch Posted December 2, 2020 Posted December 2, 2020 (edited) To add audio to an event, you only need to use the Translator: Media MCU. In my image below, I'm pulsing a daisy chain of MCUs that: 1) show a subtitle message to the player 2) stop all media before I play the sound clip (optional) 3) play the sound clip 4) wait until the sound clip is done, and then stop all media Landing and search lights can be found in the artillery section of the content browser To make landing lights turn on (or off) through a player's flare, you will need to use a Complex Trigger MCU. Let me show you how I'd do it. First I target link a Mission Begin MCU to a 3 second timer. Then target link the 3 second timer to a Force Complete MCU. This Force Complete MCU will be set to HIGH. With the Force Complete set to high, the landing lights will be off no matter what. Then I object link from the Force Complete to all of the landing lights. Next, I add a Complex Trigger to the area I want the player to fire a flare. I adjust the radius and set the Complex Trigger to check for the player's fired flare event. Make sure: that the "object fired flare" event is checked, that check planes checkbox is checked that you select the correct plane that you select the correct country (optional) set the object name to the same as the object that is firing the flare Next, I event link 'on flare fired' the complex trigger to a 1 second timer. Target link the 1 second timer to a force complete. Set the force complete to low to turn the lights on. Object link the force complete to all of your landing lights. Now when the player fires a flare within the Complex Trigger's radius, the lights will turn on. All of this information can be found on @JimTM's Mission Editor Manual, which you can find here: Here's the group for you to digest: landing lights via flare.zip Good luck, and if you have more questions let us know. Edited December 2, 2020 by Sketch 1 3
NightFighter Posted December 2, 2020 Author Posted December 2, 2020 This response was exactly what I was looking for. Much thanks. Yeah, I saw the landing lights in Jim's manual but I just couldnt find them. Feel really dumb now, the landing lights were right next to the searchlights, an object I have used many times before. 1
Deacon352nd Posted December 3, 2020 Posted December 3, 2020 Sketch, If you want to play a media mp3 on a dserver, do all the participants need to have the mp3 file in their setup or just the dserver? And if just the dserver, is it set up as you showed above?
JG4_Deciman Posted December 3, 2020 Posted December 3, 2020 Every media file linked within the mission is a part of the mission and is added to the '.list' file. And every file inside the '.list' is downloaded by any client connecting to the server. Deci 1
Sketch Posted December 3, 2020 Posted December 3, 2020 58 minutes ago, Deacon352nd said: If you want to play a media mp3 on a dserver, do all the participants need to have the mp3 file in their setup or just the dserver? And if just the dserver, is it set up as you showed above? Yes, everyone has to have the audio file, and if it's part of the *.list file (which it should be) then the clients will download them when they first download the mission.
NightFighter Posted December 4, 2020 Author Posted December 4, 2020 @Sketch, sorry for not figuring this out, but I still need help with the audio playing. I have the mp3. in the media translator, as well as it configured per your screenshot with the daisy chain, however it still wont play. I've attached some screenshots. Thanks for your help with this. I've used 100ms for the timers, and added media stop before and after the play sound. I have set the last timer for 100ms on accident, but I don't know if that is the problem.
IckyATLAS Posted December 4, 2020 Posted December 4, 2020 (edited) In one of my missions I have created the Krasnodar Radio with eight channels of music program for the military forces. I use an eight way random switch (it is based on an extension of the model that you can find in Jim's manual) which activates one of the eight WWII wartime lyrics I have registered and coded as mp3. I use Audacity to edit and code my sounds files, and Panopreter to create spoken sound files with Male or Female voice. Please find hereby attached a group file of the way I designed it. You can just modify the link to the music files and the radio announcement sound files by the ones you will create. Krasnodar Red Army Radio.zip Edited December 4, 2020 by IckyATLAS 2 1
Sketch Posted December 4, 2020 Posted December 4, 2020 7 hours ago, NightFighter said: I have set the last timer for 100ms on accident, but I don't know if that is the problem. The last timer is turning off all audio, so it needs to be longer than your audio duration.
NightFighter Posted December 4, 2020 Author Posted December 4, 2020 Okay, thats what I originally thought, thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now