Jump to content
Sign in to follow this  
BlackDeath-CFH

Music/radio help.

Recommended Posts

i know how to get music and sounds into a mission, but instead of the music playing where ever you are i want it to be playing on a radio where these 2 soldier are sitting down, and when you walk closer it gets louder and when you walk away it gets lower. how do i do this? i did search but all it came up with was like useing the radio ect ect and useing music in a mission i already know how to do.

Share this post


Link to post
Share on other sites

Define your music as a sound and use the playsound command on the radio.

RED

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (RED @ Feb. 23 2003,12:55)</td></tr><tr><td id="QUOTE">Define your music as a sound and use the playsound command on the radio.

RED<span id='postcolor'>

so where it says CfgMusic in the description.ext i make it CfgSounds and use playSound "sound" in the radio object placed on the maps init field? if so this doesnt seem to work, i get a "No entry" error.

Share this post


Link to post
Share on other sites

hmmm nevermind what i said, after tinkering around with it a bit i got it to work. but when you walk away from the radio it still plays like it was a music file. doesnt get any lower.

Share this post


Link to post
Share on other sites

As Pins said in the other thread, use the say command instead.

radio1 say "music"

Sorry for getting that wrong, my brain was recovering after saturday night smile.gif

RED

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (RED @ Feb. 24 2003,09:57)</td></tr><tr><td id="QUOTE">As Pins said in the other thread, use the say command instead.

radio1 say "music"

Sorry for getting that wrong, my brain was recovering after saturday night smile.gif

RED<span id='postcolor'>

i dont know what to do with that command, do i put it in the init fiield of the radio? or a activation field of a trigger?

Share this post


Link to post
Share on other sites

use it on the onactivation field of a trigger, make sure you have the sound defined as you would a voice though.

RED

Share this post


Link to post
Share on other sites

well it doesnt seem to be working, the music file plays fine when i activate it through the trigger

but i named the object radio 'radio' and in the activation field of the trigger i put radio say "music" and it doesnt play. here is my description.ext

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgSounds

{

   class music

   {

       name = "music";

       sound[] = {"\sound\music.ogg", db+10, 1.0};

       titles[] = {0, $STRM_music};

   };

<span id='postcolor'>

did i do something wrong? because i dont think i did.. because the music plays fine... just not the way i want it to be done.

Share this post


Link to post
Share on other sites

FoNeKiLL....this might work :

Where you have "db+10"   .... Try putting something like "db-40"

A volume of +10 might be too loud and you can hear it from farther distances. I'm pretty sure that ive seen -40 work. Let me know.

Otherwise...if its not working at all as a "sound"....then all I can think of is making sure the file is saved as "mono" instead of "stereo".

Oh...and I figured I could ask a question here since we are on the subject of sounds and music.

Has anyone found a way to stop a sound/music file in the middle of playing. So that way you could have say a radio, with actions that have you pick from a few different songs, and instead of the songs overlaying each other when you click on them...it would stop the previous song and start the new one you selected.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Nic @ Feb. 25 2003,08:35)</td></tr><tr><td id="QUOTE">FoNeKiLL....this might work :

Where you have "db+10"   .... Try putting something like "db-40"

A volume of +10 might be too loud and you can hear it from farther distances. I'm pretty sure that ive seen -40 work. Let me know.

Otherwise...if its not working at all as a "sound"....then all I can think of is making sure the file is saved as "mono" instead of "stereo".

Oh...and I figured I could ask a question here since we are on the subject of sounds and music.

Has anyone found a way to stop a sound/music file in the middle of playing. So that way you could have say a radio, with actions that have you pick from a few different songs, and instead of the songs overlaying each other when you click on them...it would stop the previous song and start the new one you selected.<span id='postcolor'>

useing mono works, thanks man.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×