Jump to content
Sign in to follow this  
Kingsmurfy

Custom Radio Menus

Recommended Posts

I did search but couldn't find anything relating to this, although I may just be using the wrong keywords.

What I'm looking for is being able to create menus within the radio menu.

How usually you go to Radio and then you have; Alpha, Bravo, Charlie...

Is it possible to have perhaps the following layout?

Radio>Air>Alpha, Bravo

Radio>Sea>Alpha, Bravo

Radio>Land>Alpha, Bravo, Charlie, Delta

My thinking being not only does it divide up the units (in this case, my reinforcements), but also allows for more than just 9 or so radio commands. Any idea if it can be done?

Share this post


Link to post
Share on other sites

you create and delete radio triggers dynamically to make it appear that you have more than 10 radio commands.

example:

click radio alpha, (all radio triggers deleted), (new "alpha" submenu radio triggers created) you click "alpha" - "bravo"("bravo" being the replaced bravo radio trigger, have exit radio or a condition(not sure if you can detect when player radio menu is open, else maybe check for mouseclick or keyboard stroke to delete "submenu" triggers and recreate the original triggers and so on and so forth. :D

It will be somewhat complex but using createTrigger, setTriggerActivation, [/url], setTriggerText commands and you can do it.

Share this post


Link to post
Share on other sites

It can be done. I use sqs scripting, I know there's probably an easier way with sqf but it works!

1.Create 2 sqs files. Radio and Radio1.

2. Radio should contain

1 setradiomsg "Air"
2 setradiomsg "Sea"
3 setradiomsg "Land"
4 setradiomsg "null"
5 setradiomsg "null"
6 setradiomsg "null"
7 setradiomsg "null"
8 setradiomsg "null"

menu = 0

3. Radio1.sqs should then contain

_radio = _this select 0

?menu == 0 : goto "RADIO0"
?menu == 1 : goto "RADIO1"
?menu == 2 : goto "RADIO2"
?menu == 3 : goto "RADIO3"
?menu == 4 : goto "RADIO4"
?menu == 5 : goto "RADIO5"
?menu == 6 : goto "RADIO6"
?menu == 7 : goto "RADIO7"
?menu == 8 : goto "RADIO8"
?menu == 9 : goto "RADIO9"
exit


;----------Default Menu----------
#MENU0
1 setradiomsg "Air"
2 setradiomsg "Sea"
3 setradiomsg "Land"
4 setradiomsg "null"
5 setradiomsg "null"
6 setradiomsg "null"
7 setradiomsg "null"
8 setradiomsg "null"
menu = 0
exit

#RADIO0
?_radio == "A" : goto "MENU1"
?_radio == "B" : goto "MENU2"
?_radio == "C" : goto "MENU3"
exit



;----------Main Menu----------
#MENU1
1 setradiomsg "AirStrike"
2 setradiomsg "Helicopter support"
3 setradiomsg "Main Menu"
4 setradiomsg "null"
5 setradiomsg "null"
6 setradiomsg "null"
7 setradiomsg "null"
8 setradiomsg "null"
menu = 1
exit

#RADIO1
?_radio == "A" : goto "AIRSTRIKE"
?_radio == "B" : goto "HELICOPTER"
?_radio == "C" : goto "MENU0"
exit

#AIRSTRIKE
/////////insert your airstrike script or whatever you want here/////
goto "MENU0"

#HELICOPTER
//////////insert waht you want here////
goto "MENU0" 

3. Create some radio triggers in your mission. Radio ALPHA should have this in the init line

["A"] exec "radio1.sqs";

, and so on....with radio BRAVO having

["B"] exec "radio1.sqs";

4. Make sure you've got an init.sqf, and include this

[] exec "Radio.sqs";

There you go. You can have as many radio channels as you want now, just copy the above steps. Any problems let me know and I'll sort them.

Share this post


Link to post
Share on other sites

the big clue would be to use the setTriggerText command so you actually know what kind of submenu you are in.

you can change a already created triggers text (the text you see in the radio menu)

Share this post


Link to post
Share on other sites

You can also dynamically change the trigger statements, so you don't have to create / delete any triggers.

However, another (and imo more elegant) solution would be to use the build in Communication Menu. You only set it up once and then don't have to keep track of updating any trigger conditions / statements etc.

Share this post


Link to post
Share on other sites

Hey All, Good Day. I was reading this and have been using the Custom menu Mostly spoke about in Arma OA for years now. I have now converted over to Arma 3 and when using the menu It seems not to work the same way. When I click on a menu item, it disapears from the list. I have used the same exact Radio scripts in arma OA and it works so the code is right.

My Quesiton is... does Arma 3 support this method and if not, is there another way to create custom radio menus for Arma 3.

Thanks.

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  

×