Home   Help Search Login Register  

Author Topic: Radio Voice.  (Read 1138 times)

0 Members and 1 Guest are viewing this topic.

nogreymatter

  • Guest
Radio Voice.
« on: 06 Jan 2006, 02:24:28 »
I have voices that are supposed to activate when a sidechat radio transmission comes up, or a PAPA_BEAR transmission comes up. I have it in a sound folder in the mission folder.

The radio transmissions are activated by triggers, and just before I write charlie sidechat "TEXT" i put
[] exec "team1radio1.ogg";

Also I have it in a description file setup like this:

class CfgRadio
{
   sounds[] =
      {
      };

   class team1radio1
   {
      name = "";
      sound[] = {"team1radio1.ogg", db-64, 1.0};
      title = $STRCAMP_team1radio1;
   };
};

When it comes time fore it to activate it says can't find team1radio1.ogg.

How can I get this to work? I'm completely clueless.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Radio Voice.
« Reply #1 on: 06 Jan 2006, 03:08:01 »
OFP Elite???

I didn't think you could do some of these things in the editor.

Are you sure?


Planck
I know a little about a lot, and a lot about a little.

Offline Mikero

  • Former Staff
  • ****
  • ook?
    • Linux Step by Step
Re:Radio Voice.
« Reply #2 on: 06 Jan 2006, 03:34:45 »
>Are you sure?

afaik the 'restriction' is that scripts can't be passed in multiplayer as 'it' remains on the server. Eg, player side, they don't activate. But even that has a workaround where you pass it inside an init field (i think, gasp, out of my depth)

@nogreymatter

quick 'n dirty guess is you need a / character

/team1radio1.ogg

Just say no to bugz

nogreymatter

  • Guest
Re:Radio Voice.
« Reply #3 on: 06 Jan 2006, 04:20:19 »
AHHH **** I posted this in the wrong forum sorry. Could you move this to OFP Mission Editing?

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re:Radio Voice.
« Reply #4 on: 06 Jan 2006, 04:21:11 »
I'm bettin this isn't OFP Elite (xbox) related :)
Xbox Rocks

Offline 456820

  • Contributing Member
  • **
Re:Radio Voice.
« Reply #5 on: 06 Jan 2006, 21:09:57 »
Quote
[] exec "team1radio1.ogg";

Huh i think thats why try playsound "team1radio1" that will work never heard of playing a sound like that you can call scripts like that but not sound files

nogreymatter

  • Guest
Re:Radio Voice.
« Reply #6 on: 06 Jan 2006, 21:44:07 »
Okay will try that.

Yeah sorry again for posting in the wrong area this is not for OFP:Elite.

-----------------------------------------------------------------------

Update

I tried playsound "team1radio1"

and

playsound "team1radio1.ogg" and it still says that it can't find it.

I even tried to make the file name shorter by renaming it dt1.ogg and it still won't work.

and Keep in mind im putting that line in the On activation area of the trigger.

This is not for a cut scean this is in game.
« Last Edit: 06 Jan 2006, 23:16:46 by nogreymatter »

nogreymatter

  • Guest
Re:Radio Voice.
« Reply #7 on: 06 Jan 2006, 23:51:25 »
Okay I after trying somethings I still couldn't get the radio message to play. So I put it in the sound catagory and it worked.

Is there a reason to why it works when I put it under sounds and not under radiocfg in the description file.

Offline 456820

  • Contributing Member
  • **
Re:Radio Voice.
« Reply #8 on: 07 Jan 2006, 10:41:41 »
DOH stupid me didnt relise when you put the sound in the cfgRadio it can not be played using playsound that only works in the cfgSounds section

General Barrons post here 5th down may come in use shows the different sound classes and how they can be played

nogreymatter

  • Guest
Re:Radio Voice.
« Reply #9 on: 08 Jan 2006, 18:30:48 »
Thanks guys, I was able to fix it. Radio sound now works.

Offline 456820

  • Contributing Member
  • **
Re:Radio Voice.
« Reply #10 on: 08 Jan 2006, 20:11:57 »
just relised why not use sideradio and make a stringtable with it so it will play at the same time ive noticed sometimes it can be slow using your method and doesnt respon when you want so you might not get any text but the sound or the other way around