Jump to content

Recommended Posts

Posted (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 by Exocet
Posted

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! 

Posted

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

Posted

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 ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted

do you mean like that?

 

attachment.php?attachmentid=120824&stc=1&d=1440588538

 

or actualy without the F1-F8 at the start of each line?

 

regards,

RR

radio.png.20070184dd52257d32b55739b475f537.png

[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

  • 6 years later...
  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...