OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: tudders 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?
-
The sound plays if i export it to the single player missions - is there a way to get it to work in the editor?
-
have you got the sounds in a folder called "sound", and declared the sound in description.ext?
It should work
Hauk
-
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: ...
-
make a script called "bluechat.sqs".
Put this in it
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
-
well you have
globalradio = white text
groupradio = green
sideradio = blue
also try this instead
class CfgRadio
{
sounds[] =
{
};
class radiocheck
{
name = "radiocheck";
sound[] = {"radiocheck.ogg", db+30, 1.0};
title = $STRM_radiocheck;
};
-
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?
-
You can change the name of the unit by putting this in his init field:
this setidentity "unitname"
I think thats it, off the top of my head.
Hauk
-
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 ;)
-
hehe ok, just solve this topic by clicking the little "solve" button in the bottom left hand corner of the screen ;)
Hauk