OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CrashnBurn on 29 Jan 2004, 22:27:26

Title: description.ext
Post by: CrashnBurn on 29 Jan 2004, 22:27:26
How does one limit the amount of time the text displays when a sound is played as specified in the description.ext file ? The text being called is from the stringtable.csv. Can you add a value in "seconds" next to it such as-

class Dx06v10
   {
      name = "Dx06v10";
      sound[] = {"Dx06v10.ogg", db+05, 1.0};
      titles[] =
      {
         0, $STRD_Dx06v10,3
      };
   };

As you all know, syntax errors in the description file crash the game so I hesitate to experiment with it too much.
Title: Re:description.ext
Post by: h- on 29 Jan 2004, 23:57:27
Doubt it...
At least haven't seen BIS use it...

But hey, just test it... It's only one crash...  ;)
Title: Re:description.ext
Post by: macguba on 30 Jan 2004, 00:51:10
If you're talking about the titletext that appears, you can follow it 3 seconds later with a blank titletext " " which will make it disappear.
Title: Re:description.ext
Post by: sim on 08 Feb 2004, 21:48:19
I've recently been learnin stringtable and description files and it aint bin to easy but I think I can help. You dont need titletext to be able to do this.
If you look in the stringtable of snYpers mission op axe-point(damn good mission btw!) he has the following

STRM_nothing, " ",

then in the description

class CfgSounds
{
   sounds[] = {nothing, d1conv1, d1conv2, d2conv1, d2conv2, d2conv3, d2conv4, d2conv5, d2conv6, d3conv1, d3conv2, d3conv3, d3conv4, d2convEnd1};

   class nothing
   {
      name = "";
      sound[] = {};
      titles[] =
         {
            0, $STRM_nothing
         };
   };

and then in the intro file

Alpha_Officer say "d1conv2"
~4

HQ_Officer say "nothing"

so 4 seconds after the Alpha_officer has said "d1conv2" the text will fade off the screen.

hope this will have been of some help to you m8 (if not iv wasted my time and urs lol!)

sim