OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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;
};
???
-
Use:
NameOfUnit sideRadio "RadioMessage"
The radio message is deffined in the description file.
As in your file; Radio1 and Radio2
-
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?
-
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:
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 ???
-
it works now
cheers!