Jump to content
Sign in to follow this  
hridaysabz

cfgSound and cfgRadio

Recommended Posts

Hello to the ArmA community.

I've been stumped trying to figure out how to get my description.ext to include all the sounds in game from my Voices folder.

Here's the description.ext:


class CfgRadio{
sounds[] = {};
class Miller1radio
{
	name = "Miller - 1st";
	sound[] = {"\Voices\miller1.ogg", db-100, 1.0};
	title = "Roger that, HQ. We’re expecting that convoy in 25 minutes.";
};


class Miller2radio
{
	name = "Miller - 2nd";
	sound[] = {"\Voices\miller4.ogg", db-100, 1.0};
	title = "There they are. Alright, knock ‘em down, Cheetah!"; 
};
//------------------------------------------------------------------------------------------------------------------------------------------
class CfgSounds
{
sounds[] = {};
class Miller1direct
{
	// how the sound is referred to in the editor (e.g. trigger effects)
	name = "Miller - Close";
	// filename, volume, pitch
	sound[] = {"Voices\miller2.ogg", 1, 1};
	//subtitle delay in seconds, subtitle text 
	titles[] = {1, "Ah, the wolverines! It’s an honor to finally meet you. Ever served in these parts? "};
};
};
class Miller2direct
{
	// how the sound is referred to in the editor (e.g. trigger effects)
	name = "Miller2 - Close";
	// filename, volume, pitch
	sound[] = {"Voices\miller3.ogg", 1, 1};
	//subtitle delay in seconds, subtitle text 
	titles[] = {1, "Most of it, you must’ve heard from Captain Hutch, but we’re expecting some reinforcements from BASE, should things become a little difficult. We have an attack chopper on station. That should ease things out, and we also have some artillery rounds at our disposal. We’ve marked a scouting location where you will need to move to. See ya later, gentlemen."};
};
};


Any ideas on why this is not working?

Share this post


Link to post
Share on other sites

What happens do you get an error when trying to activate a sound?

You are calling the sound using the class name instead of the name correct?

playSound "Miller1radio";

or

player say ["Miller1direct", 100];

Share this post


Link to post
Share on other sites

Hey thanks for the reply,

Whenever I have this in my description.ext, I don't see the sounds in my editor. I also moved them into the main mission directory from the voices folder and changed the code but it doesn't seem to work.

Share this post


Link to post
Share on other sites

What do you mean by you don't see them in the editor? Do you mean under Trigger effects you are looking for the custom sound? In the trigger effects there are numerous categories I think you will find them under Voices but not 100% sure.

If you create a radio trigger and try and play your custom sound by putting playSound "Miller1radio" in the onActivation field does that work? You hear the sound OK?

Share this post


Link to post
Share on other sites

Alright, I've finally got them into the editor. How do I make it so that when I play the sound, the subtitles come with it too?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×