Jump to content
Sign in to follow this  
beako

Custom Respawn Menu Music

Recommended Posts

Hi All,

 

I'm trying to customize the respawn menu with my own music but it's not playing anything, I don't get any errors in the debug console either. 

 

added to description.ext

class CfgMusic
{
	tracks[]={};
	class OutfitMenuMusic
	{
		name = "OutfitMenuMusic";
		sound[] = {"\Music\OutfitMenuMusic.ogg", db+0, 1.0};
	};
};

added to initPlayerLocal.sqf

//BI RESPAWN MENU - IDD 58 PLAY OutfitMenuMusic
if (!isDedicated) then { 
	waitUntil {!(isNull (findDisplay 58))}; //58
	if (isNil "BEAK_MUSIC_INIT") then {
		BEAK_MUSIC_INIT = 1;
		playMusic "OutfitMenuMusic";
		_music = addMusicEventHandler ["MusicStop",{playMusic (_this select 0)}];
		waitUntil {isNull (findDisplay 58)};  //58
		removeMusicEventHandler ["MusicStop",_music];
		playMusic "";
	};  
};

added folder "Music" in my mission file with the OutfitMenuMusic.ogg that works.

 

 

Share this post


Link to post
Share on other sites

make sure that "BEAK_MUSIC_INIT" is nil for local client, it could be just typo "B>R<EAK_MUSIC_INIT"

Share this post


Link to post
Share on other sites

Thanks for the reply but, still no joy.

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  

×