OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 25 Mar 2005, 09:12:02

Title: briefing sounds
Post 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

Code: [Select]
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

Title: Re:briefing sounds
Post by: 456820 on 25 Mar 2005, 09:17:07
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
Title: Re:briefing sounds
Post by: THobson on 25 Mar 2005, 10:06:51
Just use normal sound files, but I think you are using the wrong file

Quote
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.

Quote
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.
Title: Re:briefing sounds
Post by: 456820 on 25 Mar 2005, 10:14:11
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
Title: Re:briefing sounds
Post by: THobson on 25 Mar 2005, 10:22:00
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
Title: Re:briefing sounds
Post by: 456820 on 25 Mar 2005, 10:22:49
oh ok thanks i will try that right now
Title: Re:briefing sounds
Post by: 456820 on 25 Mar 2005, 10:41:09
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
Title: Re:briefing sounds
Post by: THobson on 25 Mar 2005, 11:18:30
If you de-pbo my Abandones Armies mission you will see how I did it.
Title: Re:briefing sounds
Post by: 456820 on 25 Mar 2005, 11:40:26
yep ive got it working not sure what was wrong but its working
thanks eeryone for your help