Jump to content

How to add audio/Radio? - Where are the Runway Lights? - How to get player flares to turn on/off lights?


Recommended Posts

Posted

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.

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

 

229255698_soundclip.thumb.png.f022ae25e6e04d855d9425db294519fb.png

 

 

 

Landing and search lights can be found in the artillery section of the content browser

lights.png.ea72e230f259b3b26d582d9ad668f55f.png

 

 

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.

 

image.thumb.png.6511bc542d9ccc112bfc31a1cf419f0c.png

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.

 

 

image.png.5830c11edaf88b61cf18f25346e55520.png

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

 

image.thumb.png.5f662bbef7eac0d9575f144c3e681c3f.png

Next, I event link 'on flare fired' the complex trigger to a 1 second timer.

 

 

image.png.86740afa3ae5a4f20f769359dfac70ad.png

Target link the 1 second timer to a force complete. Set the force complete to low to turn the lights on.

 

image.thumb.png.09653c542573ff73a3d6f4f86e199b98.png

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 by Sketch
  • Like 1
  • Upvote 3
Posted

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. 

  • Upvote 1
Posted

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?

Posted

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

 

  • Upvote 1
Posted
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.

Posted

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

Screenshot (8).png

Screenshot (7).png

Posted (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 by IckyATLAS
  • Like 2
  • Upvote 1
Posted
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.

Posted

Okay, thats what I originally thought, thanks.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...