OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mikeyfish90210 on 08 Mar 2005, 20:48:44
-
right in my description.ext i have this;
// Music
class CfgMusic
{
// Contains a list of all the .ogg files (without the .ogg extension) which are
// in all of the CfgMusic class instances below.
tracks[]=
{
Meep
};
// Definition for a specific music track
// The class name is referenced in the mission.sqm file. (E.g. track="01demo"
class Meep
{
// Name. How is this used?
name = "TMBG";
// Sound file to use
// First entry is sound file to use (from music directory)
// Second field?
// Third field? Pitch maybe?
sound[] = {\music\Meep.ogg, db+0, 1.0};
};
};
I want to add another track, say that all the feilds are to be named RBF including the .ogg file how would i go about doing that without screwing all the script up?
-
class CfgMusic
{
tracks[]={Meep,RBF};
class Meep
{
name = "TMBG";
sound[] = {\music\Meep.ogg, db+0, 1.0};
};
class RBF
{
name = "RBF";
sound[] = {\music\RBF.ogg, db+0, 1.0};
};
};
Or something very close to that.
Planck