Exocet Posted August 23, 2015 Posted August 23, 2015 (edited) Hello I'm in editing a multiplayer mission with possibility to show the objectivs status with f10 radio menu I would like tocreate sub menus like this -f8 Ground crew -f9 -f10 others -----Missions status --------- # 1 destroyed --------- # 2 destroyed -----Transportation Scrypt ( for chopper ) ----------Pickup / Drop -f11 back I can not, someone would have an idea ? :( Thank Edited August 26, 2015 by Exocet
Falcon_S Posted August 25, 2015 Posted August 25, 2015 Call Xcom or Greg (buddyspike server). Quote Немој ништа силом, узми већи чекић! MSI Tomahawk MAX | Ryzen 7 3700x | 32GB DDR4 3200MHz | RX 5700 XT OC Red Dragon 8GB | VPC Throttle CM3 + VPC Constellation ALPHA on VPC WarBRD Base | HP Reverb G2 Youtube | Follow Me on TWITCH!
dooom Posted August 26, 2015 Posted August 26, 2015 Look at that anti sub script that came out.... It had nested f10 menus.. Might give you an idea ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 "This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL
Grimes Posted August 26, 2015 Posted August 26, 2015 Been messing with it a little as of late. Its pretty straight forward to do. This creates a submenu with the text "training missiles" local _tSam = missionCommands.addSubMenu('Training Missiles') This adds options to that submenu. The strings On and Off are the text that are displayed. _tSam defines the submenu it goes to. updateSettings is a function that is called when a user chooses an option. The table is what is passed to the updateSettings function. In this case its the setting it needs to find and the value that was chosen. missionCommands.addCommand('On', _tSam, updateSettings, {['setting'] = 'trainingSams', ['val'] = 'true'}) missionCommands.addCommand('Off', _tSam, updateSettings, {['setting'] = 'trainingSams', ['val'] = 'false'}) My understanding is you have to have a function for it to run. But you could just make it an empty function if you want the F10 menu to just display text. From there removing items is done the same was as with the mission editor, you simply remove items by the string used in the command. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Roadrunner Posted August 26, 2015 Posted August 26, 2015 do you mean like that? or actualy without the F1-F8 at the start of each line? regards, RR [sIGPIC][/sIGPIC] "There's nothing to be gained by second guessing yourself. You can't remake the past, so look ahead... or risk being left behind." Noli Timere Messorem "No matter how fast light travels, it finds the darkness has always been there first, and is waiting for it." Terry Pratchett
gmangnall Posted January 27, 2022 Posted January 27, 2022 If anyone is still interested in this I have an xls which will (semi) automatically create the script for you to build your own contextual menus.
Recommended Posts