Home   Help Search Login Register  

Author Topic: EXT file multiple commands  (Read 639 times)

0 Members and 1 Guest are viewing this topic.

slat3r

  • Guest
EXT file multiple commands
« on: 31 May 2003, 22:16:58 »
i cant add my music to my ext file, please so me how to do this thanx :) ;D :)
« Last Edit: 31 May 2003, 22:30:32 by slat3r »

MadFred

  • Guest
Re:EXT file multiple commands
« Reply #1 on: 02 Jun 2003, 02:02:50 »
Okay, first of course you have the music in  .ogg format

let's call it  'this_is_my_music.ogg'

put this ogg file into the sound folder

then have something like this in your description.ext:


class CfgMusic
{
   track[]= { my music };
   
   class mymusic {
   name = "mymusic";
   sound[] = {"this_is_my_music.ogg", db+0, 1.0};
   };

db+0:  use -x or +x to in- or decrease volume

you can now use the playmusic command followed by the class name (or name not sure)

in this case you would use: playmusic "mymusic";

might be other ways but this works for me, hope it helps

MadFred


« Last Edit: 02 Jun 2003, 02:09:04 by MadFred »