Search the Community
Showing results for tags 'cfgmusic'.
Found 2 results
-
I am trying to place a radio and make it to play a 3D music, however i was unsuccessfull. Can someone correct my code pls. My attempt: Create a description.ext file and write this: class CfgMusic { tracks[] = {}; class track1 { name = "song1"; sound[] = {"\music\song1.ogg", db+0, 1.0}; }; Then create a playMusic.sqf file and do this: // Get the radio object _radio = _this select 0; // Parameters for the sound _params = ["track1", 100, 1]; // Call the function to play the sound globally in 3D [_radio, _params] call CBA_fnc_globalSay3d; then in the radio initialization i wrote the following: this execVM "playMusic.sqf";
-
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?