OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: nogreymatter 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.
-
OFP Elite???
I didn't think you could do some of these things in the editor.
Are you sure?
Planck
-
>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
-
AHHH **** I posted this in the wrong forum sorry. Could you move this to OFP Mission Editing?
-
I'm bettin this isn't OFP Elite (xbox) related :)
-
[] 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
-
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.
-
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.
-
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 (http://www.ofpec.com/yabbse/index.php?board=9;action=display;threadid=26889) may come in use shows the different sound classes and how they can be played
-
Thanks guys, I was able to fix it. Radio sound now works.
-
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