Home   Help Search Login Register  

Author Topic: Simple radio chatter  (Read 697 times)

0 Members and 1 Guest are viewing this topic.

Offline tudders

  • Members
  • *
  • I'm a llama!
Simple radio chatter
« on: 11 Jun 2005, 15:52:17 »
I've follwed the guides for adding radio chatter but when i play the mission it gives the error

Radio message radiocheck not found

How do i get it to play the message?

Offline tudders

  • Members
  • *
  • I'm a llama!
Re:Simple radio chatter
« Reply #1 on: 11 Jun 2005, 16:05:00 »
The sound plays if i export it to the single player missions - is there a way to get it to work in the editor?

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
Re:Simple radio chatter
« Reply #2 on: 11 Jun 2005, 16:07:11 »
have you got the sounds in a folder called "sound", and declared the sound in description.ext?

It should work

Hauk

Offline tudders

  • Members
  • *
  • I'm a llama!
Re:Simple radio chatter
« Reply #3 on: 11 Jun 2005, 16:11:18 »
Yep, i declared it using this

class CfgRadio
{
sounds[] = {radiocheck};
class radiocheck
{
name = "";
sound[] = {"radiocheck.ogg", db+0, 1.0};
title = $STRM_radiocheck;
};
};

I hadnt set the .ogg file to 128kbits which is prob. why it didnt work  ::)

The text comes up in white though - how do you change it so its in blue and start something like:

Papa Bear: ...

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
Re:Simple radio chatter
« Reply #4 on: 11 Jun 2005, 16:14:16 »
make a script called "bluechat.sqs".

Put this in it

Code: [Select]
unit sidechat "insert text"

exit

And run this script in the same trigger/waypoint you are playing your radio sound.

Thts a bit clearer.. :D

Hauk
« Last Edit: 11 Jun 2005, 16:18:31 by Hauk »

Offline 456820

  • Contributing Member
  • **
Re:Simple radio chatter
« Reply #5 on: 11 Jun 2005, 16:15:45 »
well you have
globalradio = white text
groupradio = green
sideradio = blue

also try this instead

Code: [Select]
class CfgRadio
{
   sounds[] =
      {      
      };

   class radiocheck
   {
      name = "radiocheck";
      sound[] = {"radiocheck.ogg", db+30, 1.0};
      title = $STRM_radiocheck;
   };

Offline tudders

  • Members
  • *
  • I'm a llama!
Re:Simple radio chatter
« Reply #6 on: 11 Jun 2005, 16:22:27 »
Thanks  :)

But another problem  ;D

It now comes up in blue but with...

"Delta Black 1: ..."

is there a way to use the Papabear call sign the main campaign uses just by editing the description.ext, stringtable.csv or adding a line of code in the editor?
« Last Edit: 11 Jun 2005, 16:22:47 by tudders »

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
Re:Simple radio chatter
« Reply #7 on: 11 Jun 2005, 16:29:21 »
You can change the name of the unit by putting this in his init field:

Code: [Select]
this setidentity "unitname"
I think thats it, off the top of my head.

Hauk
« Last Edit: 11 Jun 2005, 16:33:01 by Hauk »

Offline tudders

  • Members
  • *
  • I'm a llama!
Re:Simple radio chatter
« Reply #8 on: 11 Jun 2005, 16:42:05 »
this setidentity...

doesnt seem to work tho im probably implementing it incorrectly.  Thanks for the help though guys, im just gonna ignore it and have the players character saying it rather then the hq - taking the easy option out  ;)

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
Re:Simple radio chatter
« Reply #9 on: 11 Jun 2005, 16:44:06 »
hehe ok, just solve this topic by clicking the little "solve" button in the bottom left hand corner of the screen ;)

Hauk