Jump to content
Sign in to follow this  
Maguila.gm

Add Music in the loading screen

Recommended Posts

class Header
{
	gameType   = COOP; // Modo do jogo - deixar coop
	minPlayers = 1;  // Quantidade minima de players
	maxPlayers = 50; // Quantidade de maxima players
};

class cfgMusic
{
    tracks[] = {"song1"}; // Use aspas para nomear a música

    class song1 // Renomeado de track1 para song1
    {
        name = "song1";
        sound[] = {"Musica/Red_Army_is_the_Strongest_Rare_Version.ogg", db+10, 1.0}; // Corrija o caminho do arquivo de áudio
    };
};

onLoadMission = "Armapoint"; // Nome da missão
onLoadName = "Za Rodinu";
author = "MAGUILA"; // Nome do editor
onLoadMissionTime = 60;

// Corrigido o comando para reproduzir a música
onLoadIntro = [] spawn playMusic "song1";

loadScreen = "Fotos\Capa.jpg"; //Imagem da missão
debriefing = 1;
disabledAI = 0;
showGPS = 1;
onMinimapScript[] = {"BIS_fnc_customGPS_Spawn"};
respawn = 0;
respawndelay = 600;


// Nao auterar os valores onde não há explicação; 

I am currently trying to add a song in the mission loading screen but its not playing. Does someone know how to fix?

Share this post


Link to post
Share on other sites

Hey, you should see that topic or this one. I think it's the better way to do it. I'm not sure, but onLoadIntro seems to work only with "text" in description.ext.

Another way to do it should be wit Animated_Briefing but i never use it, so i can't really help with his use.

Good luck !

  • Like 1

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  

×