Home   Help Search Login Register  

Author Topic: How To Put My Own Music in to the mission  (Read 1069 times)

0 Members and 1 Guest are viewing this topic.

Dark Knight

  • Guest
How To Put My Own Music in to the mission
« on: 24 Sep 2002, 17:06:40 »
hey all is there a way to put my music (MP3/WAV) in to a mission i am creating if there is a programe i need to download give me the address i will do any thing to get that music in!!!

Skaven

  • Guest
Re:How To Put My Own Music in to the mission
« Reply #1 on: 24 Sep 2002, 17:16:20 »
Take a look at here:

http://www.ofpec.com/editors/index.php

Left Side: SCRIPT SNIPPETS   Music&Sounds

 ;)
« Last Edit: 24 Sep 2002, 17:20:41 by Skaven »

Dark Knight

  • Guest
Re:How To Put My Own Music in to the mission
« Reply #2 on: 24 Sep 2002, 17:53:04 »
OK! i have the thingy and have made a ogg file so i can playem in game but now how do i play em in game where do i put and where can i get it in game???????

seanver

  • Guest
Re:How To Put My Own Music in to the mission
« Reply #3 on: 24 Sep 2002, 18:39:23 »
Create a file called description.ext in your mission's folder:

Code: [Select]
class CfgMusic
{

tracks[]= {};

class Mus01
{

name = "Music 01";
sound[] = {\music\01.ogg, db+0, 1.0};
};
};


In this example, the music file must be located in the folder music inside the mission's fgolder and called 01.ogg. Obviously you can change that. You can change also the name in the "class" line and the text in the "name" line.

Now if you want to play the music, type in a script / trigger / waypoint

Code: [Select]
playmusic "Mus01"
Or whatever name you put.
« Last Edit: 24 Sep 2002, 18:40:57 by SeAnVeR »

Dark Knight

  • Guest
Re:How To Put My Own Music in to the mission
« Reply #4 on: 24 Sep 2002, 23:37:34 »
k cheers!