OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: -=Reaper=- on 01 May 2003, 20:42:48

Title: Delaying Text with radio Messages
Post by: -=Reaper=- on 01 May 2003, 20:42:48
I'm currently workign on a map wich i willl add custom
Radio voices for the first time now my problem is that
When the Trigger to execute the script is triggerd the
Stringtable text Shows up straight away but the
sound takes 1 to 2 secs before starting
is there anyway to delay the stringtable text for 1/2 secs?
Title: Re:Delaying Text with radio Messages
Post by: Knut Erik on 01 May 2003, 21:04:57
Yes, I think so...
The radio might look like this in your description.ext

   class YourText
   {
      name = "YourText";
      sound[] = {"YourText.ogg", db, 1.0};
      titles[] =
      {
         $STRM_YourText, <===Look here!
      };
   };

=====================================

   class YourText
   {
      name = "YourText";
      sound[] = {"YourText.ogg", db, 1.0};
      titles[] =
      {
         2, $STRM_YourText,<===Change it to this!
      };
   };

This will make the text defined in STRM_YourText show up two seconds after the sound is played! You can also add more text to one radio message like this:

   class YourText
   {
      name = "YourText";
      sound[] = {"YourText.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_YourText1,
         5, $STRM_YourText2,
      };
   };

This will make YourText2 show up five seconds after YourText1


Coool eh?  8)