Jump to content
Sign in to follow this  
ubimemo

Radio Submenu

Recommended Posts

Hi

I am new at this game and i can´t scripting.

And sorry for my bad english.

I wonder, is there a way to have a submenu under radio alpha.

You call for example radio alpha and you get more radio channels.

For Ex.

Radio Alpha = Helo join squadleader

Submenu 1 = Onmapclick

Submenu 2 = Helo leave squadleader

Radio Bravo = Group Delta join squadleader

Submenu 1 = Onmapclick

And so on.

Thanks for a great forum.

Ubimemo

smile_o.gif

Share this post


Link to post
Share on other sites

Simplest way: You have to make the main menu triggers

[]exec"scriptname.." a script

The script would need to use setTriggerText and setTriggerStatements commands to reassign all of the radio triggers you are using to the new submenu, while keeping a copy of the original contents in global variable space while using the submenu.

Each submenu item would also need it's own script

that would put the menu back as it was before after that script has finished running.

Also the script would have to run locally on all machines, not just on the server.

Hope that gives an idea of where to look on the command reference document for the setTrigger commands, and also how you'll need to apply them.

It would be almost pointless giving you skeleton-scripts as examples because to use them to do anything useful you would then need to do more scripting yourself anyway.

It's more than worthwhile for you to start learning scripting, but my advice would be to start on singleplayer stuff first as the multiplayer side can get quite technical at times.

check www.ofpec.com for tutorials and the command reference, and use the scripting part of this wiki site for more authoritative and in-depth info on the scripting commands themselves.

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  

×