Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Music
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Music (Read 466 times)
0 Members and 1 Guest are viewing this topic.
Mikeyfish90210
Members
HEY STOP TAKING SO LONG TO ANSWER SIMPLE THREADS
Music
«
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?
Logged
MIkEy FIshY BoyY YabDAO
Planck
Honoured
Former Staff
I'm never wrong ....I'm just not always right !
Re:Music
«
Reply #1 on:
08 Mar 2005, 20:56:53 »
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
Logged
I know a little about a lot, and a lot about a little.
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Music
Top of page