OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Hauk on 09 Apr 2004, 20:24:42
-
hey everyone,
does anyone know where to put .ogg files when you want to use them in a mission. I read something in one of the many tutorials of having to create a directory and putting it in there. I created a normal folder and placed it in there but with no results.
If anyone would send me a sample mission (in the .sqm form) it would be much appreciated.
Thnx
Hauk
-
Put the ogg file into a folder called "Sound" then put the "Sound" folder into the missions folder.
-
You must also know that you need to make a description.ext file like so...
//just a lil description file very similar to C++
//ok, to start you need to make the main function.
class CfgSounds
{
//indentation is always good
//just a list of the sounds without the .ogg ext.
sounds[] = {blabla,blabla2,etc};
//now include a definition for each sound.
class blabla
{
//name of song that you would call thru a trigger, etc.
name="blabla";
//place in the mission folder you would find the sound,volume,and pitch
sound[] = {\sound\blabla.ogg};
//if you want some kind of titletext message to appear with the sound, include this
titles[] = {1,"Text Here"};
};
//now you would have to do the above for each sound file
};
//i hope this helps
Cheers,
Sniper_Kyle ;D
-
I managed to get the sound and radio classes working after spending two weeks browsing through tutorials and the forums, but thanks for the interest ;D
Thnx,
Hauk