1. Create a mission in the editor.
2. Copy this to a description.ext file of the mission:
//----------
class CfgRadio
{
sounds[] = {};
class RadioMsg1
{
name = "RadioMsg1";
sound[] = { "@A3\Dubbing_Radio_F\data\ENG\Male01ENG\RadioProtocolENG\Normal\140_Com_Status\HealthINeedHelpNow.ogg", 1, 1 , 3500}; // Sound cut at ~50m with no fade
title = "";
};
class RadioMsg2
{
name = "RadioMsg2";
sound[] = { "@A3\Dubbing_Radio_F\data\ENG\Male01ENG\RadioProtocolENG\Normal\220_Support\SupportRequestRGCASHelicopter.ogg", 1, 1 , 10}; // Sound cut at ~10m with no fade
title = "";
};
};
//----------
3. Put down a unit as playable ( that will be you to observe the sound), and put down another unit that will be named ( in my case as "mytalkingunit") and will be the source of the radio sounds.
4. Start the game. While you moving around run one of the following commands from the Debug Consol:
mytalkingunit directSay "RadioMsg1";
mytalkingunit directSay "RadioMsg2";
5. Observe the sounds, that the "RadioMsg1" will be inaudible only after you are about 50 meters far from the source of the sound, while the "RadioMsg2" will be inaudible even just ~10 meters from the same object.