Jump to content
jcae2798

Convert vanilla music to SFX

Recommended Posts

Hey guys, wondering if there is a easy way to take vanilla music and set it up in description file to use as a sound or SFX file to allow it to play from objects.  Example below but not having much success at multiple attempts.  Also searched here and WIKI with no luck.  Any advice would be appreciated!

 

class CfgSounds 
{
	sounds[] = {};
	class MUSIC1 
	{
		sound[] = {"\A3\music_f_exp\Music\AmbientTrack02a_F_EXP.ogg",50,1};
		titles[] = {};
	};
};

 

OBJECT say3d "MUSIC1"

Share this post


Link to post
Share on other sites

You can use playSound3D for vanilla sounds, and don't even need the description.ext at all. The command only needs the path to your file and a position / object to play at.

playSound3D ["A3\music_f_exp\Music\AmbientTrack02a_F_EXP.ogg", myObject];

If you'd still prefer to have the sound defined in CfgSounds, use a @ instead of \ at the start of the path to the file. Same applies to CfgSFX if you want to use it.

class CfgSounds 
{
	sounds[] = {};
	class MUSIC1 
	{
		sound[] = {"@A3\music_f_exp\Music\AmbientTrack02a_F_EXP.ogg",50,1};
		titles[] = {};
	};
};

See the NOTE on wiki. https://community.bistudio.com/wiki/Description.ext#CfgSounds

  • Like 1

Share this post


Link to post
Share on other sites

Nice!  It works.  Thanks man, exactly what i needed  :)

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

×