OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: asmodeus on 07 Feb 2003, 13:14:34
-
Hello! In my beta mission, Lebrija Landing, I'm having a problem with the description.ext (I believe) ::)
Here's the situation:
I'm using Rubblemakers' great BigAmmoExplosion script which requires a "Sound" folder and an entry in the description.ext.. I'm also using custom music which uses a "Music" folder and an entry in the description.ext.. Here it is:
onloadintro="Custom music by Dj ElecTroSyN (Asmodeus)"
onLoadMission="Lebrija Landing"
class CfgSounds
{
sounds[] = { "booby" };
class booby
{
   name = "";
   sound[] = {"booby.ogg", db-20, 1.0};
   titles[] = { };
class CfgMusic
{
tracks[]={music};
class music
{
name = "";
sound[] = {\Music\DOS.ogg,db+30, 1.0};
};
class music1
{
name = "";
sound[] = {\music\02FF.ogg, db+30,
1.0};
};
};
Now... The Thing is... With the above description.ext, the sound effect "booby" works, but the music does not when I execute it using: playmusic "music" (the file is named DOS.ogg) However... If I switch the order in the above code where the music is first, it works and the "booby" sound does not....
What am I missing here? ???
Any help would be great! ;D
Thnx
Asmo
-
ur prob is da modef00kin };s (again ::))
try dat - and tel me if it works ;D
onloadintro="Custom music by Dj ElecTroSyN (Asmodeus)";
onLoadMission="Lebrija Landing";
class CfgSounds
{
sounds[] = { "booby" };
class booby
{
name = "";
sound[] = {"booby.ogg", db-20, 1.0};
titles[] = { };
};
};
class CfgMusic
{
tracks[]={music};
class music
{
name = "";
sound[] = {\Music\DOS.ogg,db+30, 1.0};
};
class music1
{
name = "";
sound[] = {\music\02FF.ogg, db+30, 1.0};
};
};
should work ;)
LCD OUT
-
Those damn };s
:o
I'm gonna make a mission where you hunt guys with those painted on their back. ::)
Trying it now... ;D
-
Thanks a lot LCD!!
Did the trick like usual! ;D
I'm going to release this new version soon!
Thanks again! :D
Asmo