OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: punisher on 21 May 2003, 21:16:21

Title: Radio Chatter
Post by: punisher on 21 May 2003, 21:16:21
hi
well i was bad and stole this from a des.ext
unfortunatly i dont know how to get guys saying this ingame.
They are both diferent people on the same side by the way.
Here it is:

class CfgRadio
{   
   class Radio1
   {
      name = "Radio1";
      title = HQ Incoming Choppers from the east!;
   };
        class Radio2
   {
      name = "Radio2";
      title = Rodger that, get to your battle stations;
   };



 ???
Title: Re:Radio Chatter
Post by: Knut Erik on 21 May 2003, 22:19:58
Use:
NameOfUnit sideRadio "RadioMessage"
The radio message is deffined in the description file.
As in your file; Radio1 and Radio2

Title: Re:Radio Chatter
Post by: punisher on 22 May 2003, 20:08:04
Well i got it ingame BUT
i get a nasty error saying no sound for "radio1"in the des.ext

does anyting look wrong in the snippet?
Title: Re:Radio Chatter
Post by: Knut Erik on 23 May 2003, 14:13:42
class CfgRadio
{   
   class Radio1
   {
      name = "Radio1";
      title = HQ Incoming Choppers from the east!;
   };
        class Radio2
   {
      name = "Radio2";
      title = Rodger that, get to your battle stations;
   };


Erm  ::)
You have forgot to define where your sound file is. Your description should look like this:


Code: [Select]
class CfgRadio
{
   sounds[] = { Radio1,Radio2 };
   
   class Radio1
   {
      name = "Radio1";
      sound[] = {"Radio1.ogg", db-40, 1.0};
      title = HQ Incoming Choppers from the east!;
   };
   class Radio2
   {
      name = "Radio2";
      sound[] = {"Radio2.ogg", db-40, 1.0};
      title = Rodger that, get to your battle stations;
   };
};

Does it work now ???
Title: Re:Radio Chatter
Post by: punisher on 24 May 2003, 17:28:05
it works now
cheers!