OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 25 Mar 2005, 09:12:02
-
ok i have defined the sounds that i want to play on my briefing in the description.ext as a sound file in a sound folder is that right or should it be a enviromental sound or sfx
anyway then i call it in the description.ext like this
onBriefingGear = "sound1";
onBriefingGroup = "sound2";
onBriefingNotes = "sound3";
onBriefingPlan "sound4";
rest of file here
so thats what i put its what the com ref says to put but it doesnt seem to play the sound there only like second long files of like guns gettinng cocked for the gear and things
but am i doing anything wrong there
-
and how can you have it so its every time you cilck on the tags at the top of the page so its not just click on it once and you cant get the sound again
-
Just use normal sound files, but I think you are using the wrong file
anyway then i call it in the description.ext like this
Code:onBriefingGear = "sound1";
onBriefingGroup = "sound2";
onBriefingNotes = "sound3";
onBriefingPlan "sound4";
rest of file here
That code should be in init.sqs not in description.ext
description.ext should have:
class sound1
{
name = "";
sound[] = {"\sound\sound1.ogg", 0.3, 1};
titles[] = {};
};
etc.
and how can you have it so its every time you cilck on the tags at the top of the page so its not just click on it once and you cant get the sound again
You can't. The sound is one time only.
-
how do you mean by wrong sound file do you mean it should not be defined as sound
and i have converted it to an .ogg
-
Not wrong sound files. Wrong text files. You said you put the instructions in description.ext, I said that is wrong, they should be in init.sqs
-
oh ok thanks i will try that right now
-
ok it only worked for the plan but when i clicked on any other links it just played the normal page turning sound ofp provides
-
If you de-pbo my Abandones Armies mission you will see how I did it.
-
yep ive got it working not sure what was wrong but its working
thanks eeryone for your help