OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Jahve on 12 Apr 2003, 12:03:59

Title: How to call a ogg music-file from a pbo in Res\AddOns or AddOns folder?
Post by: Jahve on 12 Apr 2003, 12:03:59
I would like to be able to call music files in the form of OGG-files from a PBO placed in Res\AddOns or AddOns folder in missions.. How is this possible (if it indeed is)? ???
Title: Re:How to call a ogg music-file from a pbo in Res\AddOns or AddOns folder?
Post by: Flapje on 12 Apr 2003, 13:20:03
I included a description.ext, you can look into it. It's for 4 different sounds. I dont really feel like explaining it right now :) but you can look into it.

Title: Re:How to call a ogg music-file from a pbo in Res\AddOns or AddOns folder?
Post by: SharkDog on 13 Apr 2003, 00:20:48
Clarify your question please....
Title: Re:How to call a ogg music-file from a pbo in Res\AddOns or AddOns folder?
Post by: Black_Feather on 13 Apr 2003, 13:36:15
right this works for me in a campaign

class CfgMusic
{
   tracks[]={example};

        class example
        {
           name = "example";
           sound[] = {\..\..\..\..\addons\pboname\musicname.ogg, db+0, 1.0};
        };
};

don't put pboname.pbo

If its a single mission I think the path would be this

\..\..\..\addons\pboname\musicname.ogg
Title: Re:How to call a ogg music-file from a pbo in Res\AddOns or AddOns folder?
Post by: Jahve on 16 Apr 2003, 16:29:04
right this works for me in a campaign

class CfgMusic
{
   tracks[]={example};

        class example
        {
           name = "example";
           sound[] = {\..\..\..\..\addons\pboname\musicname.ogg, db+0, 1.0};
        };
};

don't put pboname.pbo

If its a single mission I think the path would be this

\..\..\..\addons\pboname\musicname.ogg

im not stupid  ;)
Title: Re:How to call a ogg music-file from a pbo in Res\AddOns or AddOns folder?
Post by: Black_Feather on 18 Apr 2003, 00:36:25
 ;D sorry I've been here too long, I just give simple answers so anybody can follow it.