Jump to content
Sign in to follow this  
Icaruk

cfgMusic from addon.

Recommended Posts

In description.ext

 

When the file is on mission folder, it works:

class CfgMusic
{
   tracks[]={};


   class music1
   {
      name = "music1";
      sound[] = {"music1.ogg", db-2, 1.0};
  };
};

The problem comes when I put the file inside a addon:

I tried:

sound[] = {"\modFolder\music1.ogg", db-2, 1.0};

And:

sound[] = {"@modFolder\music1.ogg", db-2, 1.0};

(Like cfgSounds)


None of these works.
I have files on the same addon working with cfgSounds.

 

 

Share this post


Link to post
Share on other sites

If there any sound files in @modFolder mod they are already have class  defined in mod config.

Use those classes in your playMusic command.

Share this post


Link to post
Share on other sites

If there any sound files in @modFolder mod they are already have class  defined in mod config.

Use those classes in your playMusic command.

Defining clases on config.cpp in such addon works fine. Thanks!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×