Jump to content
Sign in to follow this  
SupremeTDM

help with sideRadio and correct sound names

Recommended Posts

Hello,

 

I have a simple task I want to set up but am having problems getting the correct radio sound to play.

 

Scenario:

-the player activates a trigger that creates a task "radio alpha for all clear".

-player radio's alpha

-gets a response "Area Clear" over the radio from a vtol loitering overhead.

-task complete

 

I've tried playSound, playSound3D, etc but I think these are overkill in regards to my needs, I simply want the default "Area Clear" to play one time only.  My main problem is finding this specfic radio sound and then using sideRadio to hopefully use it the way I want.

 

Any help is greatly appreciated as this seemed like something that should be easy to do but has turned into a real effort for me

 

EDIT:

I think I found the sound but am still trying to get it to play.

configfile >> "RadioProtocolENG" >> "SentClearDefault" >> "Area_clear_1"

 

EDIT 2:

I think I figured out that I get a "sound not found" because the game isn't checking my mission folder for the sound so after a lot of googling I've extracted the pbo folder for dubbing_radio_f_data_eng and have found the exact "Area Clear" I want but again, have no idea how to get this to be called over a radio from a loitering vtol.

 

Share this post


Link to post
Share on other sites

You should use a conversation system, not just a radio commands.

Put in the description.ext of the mission:

class cfgSentences
	{
		class allTalks
			{
				class Orders 
					{
						file = "allOrders.bikb";
					};
			};
	};

Create allOrders.bikb in your mission folder and put in it:

class Sentences 
	{
		class LeaderReplies 
			{
				text = "%Reply";
				speech[] = {%Reply};
				class Arguments 
					{
						class ReplyToOrder { type = "simple"; };
					};
				actor = ANY;			
			};
	};
	
class Arguments {};
class Special {};
startWithVocal[] = { hour };
startWithConsonant[] = { europe, university };

After that, create your own radio channel, for example:

YOUR_COMMAND_CHANNEL_ID = radioChannelCreate 
	[
		[0.8275*1.4, 0.8196*1.4, 0.1961*1.4,1], 
		"Just_Command_Channel", 
		"%UNIT_GRP_NAME", 
		[], 
		true
	];

Now you can use it to play those expressions (Words) that are in the protocols, for example:

// receiver player
// sender unit_1
player kbAddTopic ["Orders", "allOrders.bikb"];
unit_1 kbAddTopic ["Orders", "allOrders.bikb"];

YOUR_COMMAND_CHANNEL_ID radioChannelAdd [player, unit_1];

unit_1 kbTell 
	[
		player, 
		"Orders", 
		"LeaderReplies", 
		["Reply", {}, 	"All Clear!", [selectRandom ["AreaClear","Clear"]]], 
		YOUR_COMMAND_CHANNEL_ID
	];

 

  • Like 2

Share this post


Link to post
Share on other sites
On 1/28/2023 at 6:31 AM, Ibragim A said:

You should use a conversation system, not just a radio commands.

Why?

 

This is a great script and example but is overkill for my needs, sorry if I didn't express them right.

In my whole mission, I only need simple one line audio responses, "copy" "hold" "move forward" etc. All of these I've easily been using now with sideRadio such as "vtol1 sideRadio "SentClearDefault"; 

 

The player is never a squad leader in my mission, he is a "cog" in a larger formation so he hears base talking to other people. These are simple lines that I even use the module for "play radio message" and then just have a specific unit reply with a sideRadio and timer.

 

Again, thanks for taking the time, I figured out sideRadio finally (mostly thanks to JohnnyBoy) and that seems to be a simpler option for what I need.

Edited by SupremeTDM
clarity

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  

×