OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 04 Sep 2002, 15:07:42
-
Is it possible to make a music file common to a whole campaign to be able to play it in several missions from just one file?
-
yeah define the music in you campaigns description.ext and put the file in the campaigns music directory instead of the missions.
-
tried but i doesn't work. I have the song in \campaign'sname\music directory and in description.ext i put:
class CfgMusic
{
tracks[]= {Musica01};
class Musica01
{
name = "Musica01";
sound[] = {\Music\01.ogg, db+0, 1.0};
};
};
When I try to play the music in a cutscene, with a script with playmusic "Music01", it won't play. Nor I get a message error, like file not found. The music played perfectly when I tried it in the editor so there's nothing wrong with the file.
-
ok put the music file here
\campaignname\DtaExt\music
and it will work
-
That didn't work. I was making the first phase of my campaign so I didn't try it. But it doesn't work. Do I have to do anything special?
-
Oops now it works. The syntax is:
class CfgMusic
{
tracks[]= {Musica01};
class Musica01
{
name = "Musica01";
sound[] = {\Music\01.ogg, db+0, 1.0};
};
};
and i was trying to put:
class CfgMusic
{
tracks[]= {Musica01};
class Musica01
{
name = "Musica01";
sound[] = {dtaext\Music\01.ogg, db+0, 1.0};
};
};
-
silly bugger ;D
-
Now Ive gotta click on the solve butom, haven't I?