Home   Help Search Login Register  

Author Topic: Music through radio  (Read 711 times)

0 Members and 1 Guest are viewing this topic.

Offline Arctic

  • Members
  • *
  • In Utero
Music through radio
« on: 09 Feb 2003, 17:41:27 »
I want some music to play as if it were on the radio. I used Navy_Seals's script to have the sound play, but the game wont recognize the sound.

The music will play if i use the effects option in a trigger or waypoint. I just can't call in the music with the say command.
\\I know that say is usually use for speech, but the tute says u can!//

here are the two docs. Description.ext and radioparty.sqs

Description.ext
Code: [Select]
class CfgMusic
{
      tracks[]={radioloop};

      class radioloop
      {
            name = "radioloop";
            sound[] = {\Music\Radio\wimr.ogg, db+30, 1.0};
      };

};


radioparty.sqs
Code: [Select]
#loop
_this say "radioloop"
~200
goto "loop"


arg... inserting sounds into OFP is really annoying
  >:( >:(

Navy_Seals

  • Guest
Re:Music through radio
« Reply #1 on: 09 Feb 2003, 20:20:39 »
If u want the music to come out of the radio or anything else
u should make ur ogg file with the same specs as u do for sound, then we place a radio in the editor and write
this exec "music.sqs" and now we'll write a music.sqs file.
So lets say that the length of ur music file is 1:20, so u'll write
in the notepad like this

#loop
_this say "name of ur song"
~120 - //the actual lenght of the song, we use it if u want the song to loop over
goto "loop"

I see where i was wrong, well not exactly wrong, more like not being clear. What i meant by u should make ur ogg file with the same specs is that u have to do the same thing as when u make ur sound file and thus ur description.ext should be
class CfgSound not CfgMusic

Cheers ;)