Home   Help Search Login Register  

Author Topic: Music in the mission  (Read 1557 times)

0 Members and 1 Guest are viewing this topic.

Offline Kekc

  • Members
  • *
Music in the mission
« on: 14 Jun 2009, 17:42:35 »
Good day gentlemen!

I've got a problem.... I don't know how to put music in my mission...
Let's begin from all what i have, I have only mission.sqm file. What format of music do i need and how to make it replay in my mission?

Greetings, Kekc  :P

Ahh yes, btw it is my first mission and sorry for the offtop... :whistle:
« Last Edit: 14 Jun 2009, 17:44:16 by Kekc »

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Music in the mission
« Reply #1 on: 14 Jun 2009, 17:56:50 »
 :welcome:

May I first introduce you to our "Search" function? It's really helpful and keeps us from answering the same question over and over again... :P

You should also read this. ;)
« Last Edit: 14 Jun 2009, 17:59:20 by Worldeater »
try { return true; } finally { return false; }

Offline Kekc

  • Members
  • *
Re: Music in the mission
« Reply #2 on: 14 Jun 2009, 18:01:43 »
Ahh... right  :cool2:
Will do this, thanks... I'm just a young internet user and it's my second forum where I registered

P.S Sorry for my english, I do my best at school :-)

Quote
You should also read this.
Aha! Thank you very much for that link. :good:

Guess that what i'm looking for:
Quote
HOW TO INSERT SOUNDS IN MISSIONS :

First, your  ...
...  must be in *.ogg format. Personnaly, I use  ...
...  Music Convertor. Place your musics in your  ...
...  folder but if you have a lot of scripts in this mission, make a new folder in  ...
...  Music and another one for the sounds named  ...
... . You must enter some parameters in the mission. The file which contains  ...
...  notepad and save it as description.ext. In this file, you have to enter parameters  ...
... . You can just put one sound by deleting the others or add others.

Environment  ...
...  = Subtitle of the sound which appear in the radio sounds (left of the screen).  ...
...  help by your sound name.
Quote

Musics
Quote

class CfgMusic
{
tracks[] ...
...  = {"MyMusic"};
class MyMusic
{
 ...
...  = "MyMusic";
sound[] = {"\music\MyMusic. ...
... ", db-5, 1.0};
};
};

In this case, the music is in the music  ...
...  (Look at the sound[] line). Replace MyMusic by your music name.

 ...
...  you want to add several musics or sounds, the first }; at the end is  ...
...  close the first sound parameter in the class and the last one is to close  ...
... , just make like this for all sounds or music but don't forget to change the class !

 ...
...  to play the sounds or musics ? :
Use a script or make a trigger  ...
...  parameters you want and in the "On Activation field, write this :

 ...
... - For musics :
PlayMusic "MyMusic"
or
PlayMusic [ ...
... ",15]
In the second example the music won't  ...
...  at its beginning but at the 15th second of its total  ...
...  vehicle radio (Yellow)

- For a dialog (In the sound class) :
UNIT_NAME say " ...
...  movements, you must convert the sound in *.lip format. Use Wav To Lip program  ...
... . You don't need to write the lip file in the description.ext but it must have  ...
...  same name than its ogg file.
« Last Edit: 14 Jun 2009, 18:12:44 by Kekc »