Jump to content
Clarkey1

Ambient Radio Chatter

Recommended Posts

@Kremator and @MagicPanda, I might as well kill 2 birds with one stone:

// Ambient Radio Chatter in/near Vehicles
while {true} do
{
private ["_sound"];
if (player != vehicle player) then 
	{
	playmusic format ["RadioAmbient%1",floor (random 31)];
	} 
	else
	{
	if (player distance ourcar < 10) then
		{
		_sound = format ["A3\Sounds_F\sfx\radio\ambient_radio%1.wss",floor (random 31)];
		playsound3d [_sound,ourcar,true,getPosasl ourcar,1,1,100];
		};
	};
sleep random 60;
};

This will play positional audio if you are near a vehicle named ourcar, and non-positional audio if you are inside any vehicle

Edited by tpw

Share this post


Link to post
Share on other sites

TPW, this is great. How do you tweek to play random audio for near ANY vehicle

other than 'ourcar'? cfg path?

Share this post


Link to post
Share on other sites

This does the trick

// Ambient Radio Chatter in/near Vehicles
while {true} do
{
private ["_sound","_veh"];
if (player != vehicle player) then 
	{
	playmusic format ["RadioAmbient%1",floor (random 31)];
	} 
	else
	{
	_veh = ((position player) nearEntities [["Air", "Landvehicle"], 10]) select 0;
	if !(isnil "_veh") then
		{
		_sound = format ["A3\Sounds_F\sfx\radio\ambient_radio%1.wss",floor (random 31)];
		playsound3d [_sound,_veh,true,getPosasl _veh,1,1,50];
		};
	};
sleep random 60;
};

Hmm, not bad, me! I'll put this one into my missions init.sqf I think.

Share this post


Link to post
Share on other sites
Clarkey1

How do i change the chatter from bis to my own custom made and only in designated vehicles like helo1, tank1 and 2?So i can use radio chatter mix with music !

How do you mix with custom music ?

Share this post


Link to post
Share on other sites

Hi tpw how would you increase the volume of the radio chatter in your code please? It is really low can hardly hear it, I have turned up my audio config to the highest setting but still a bit low for me :)

Share this post


Link to post
Share on other sites

I would like to use this as ambient on fixed radios, like the big ones found on tables on CUP

 

Is there any way to modify the script to make the desktop radio to play the chatter in 3D mode for multiplayer?

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

×