Search the Community
Showing results for tags 'cfgmusic'.
Found 1 result
-
CfgMusic Error, Cant seem to get it working
Brandon E posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello so im creating a mission with a song that triggers when I start the mission. So in my description.ext file i've got this class CfgMusic { tracks[] = {}; class MyIntro { // display name name = "intro"; // filename, volume, pitch sound[] = { "\music\sound1.ogg", db + 0, 1.0 }; }; class MyOutro { name = "outro"; sound[] = { "\music\sound2.ogg", db + 10, 1.0 }; }; }; Copy and pasted from Bohemia's website on how to import the music/make it play and in my init.sqf file i've got the following execVM "description.ext"; playMusic "MyIntro"; vehicle player switchCamera "EXTERNAL"; Now everything works, the mission loads up, it forces you to 3rd person and even starts playing the music however no matter who's code I use I always am getting presented with this error '...s\Sniper.Stratis\description.ext" class |#|CfgMusic {tracks[] = {}; class MyIntro ...' File C:\Users\Brandon\Documents\Arma 3\mpmissions\Sniper.Stratis\desc..., line 1 Error Missing ; This above error pops up in black box on the screen the moment the mission loads. It's missing a semi colon but I have no idea where and i keep adding one and nothing, works. Any Ideas?