Jump to content

Can anyone help me figure out how to set up a radio menu that is trigger by part of coalition in zone


Recommended Posts

Posted

Ok guys, so what I am trying to do is set up a mission which uses the F10 menu to let players know where there are target taskings available.

So for instance, I would like to have 20 target areas each inside of its own trigger zone. In those trigger zones if there is part of a coalition in zone I would like to have a radio item in the F10 menu that displays a message to coalition with target priority, target types and grid coordinates for each of the occupied trigger zones and leave out trigger zones that do not have part of coalition in zone. 

I would also like this to be up to date information so if a target area is destroyed and there are no part of coalition in zone, every time the player checks the F10 menu for available targets, it would only display messages with current targets.

So say target area 1, 3 and 5 have targets, using the part of coalition in zone conditions would put those 3 messages to coalition in F10 menu.

If the other 17 target areas do not have part of coalition in zone, no messages would be displayed for those target areas. If units then moved into 5 other unoccupied trigger zones but left 1 other previously occupied trigger zone it would show messages for the 5 new trigger zones, the 2 previously still occupied zones and remove the message for the 1 now unoccupied zone for a total of 7 messages.

Im not even sure if I am making sense in what I am asking but my only experience with this is to spawn units with radio menu items.

Any help or suggestions would be greatly appreciated.

 

 

Intel i9-13900k, Asus Z790-E Gaming Wi-fi 2 motherboard, 64gb Corsair Vengeance LPX DDR5-6400 RGB ram 2x32gb XMP2 profile, 4TB Crucial T700 PCIE 5.0 SSD internal, 2TB Crucial T700 PCIE 5.0 SSD internal, Asus ROG Strix OC GeForce RTX 4090, Corsair 7000X Case with 5 x 120mm side mounted intake fans and 3 x 140mm top mounted exhaust fans, 1 x 140mm rear mounted exhaust fans, front mounted Corsair H150i Elite Capellix 360mm liquid cooler w/Elite LCD with 6 x 120mm fans in 3 push, 3 pull intake configuration, 1 x 32" Samsung 3840x2160 display, 1x 32" Asus 2560x1440 display, TrackIR5 w/pro clip, Thrustmaster Warthog stick and throttle, CH Fighterstick Pro and Pebble Beach Velocity pedals. 

Posted
7 hours ago, 104th_Money said:

So for instance, I would like to have 20 target areas each inside of its own trigger zone. In those trigger zones if there is part of a coalition in zone I would like to have a radio item in the F10 menu that displays a message to coalition with target priority, target types and grid coordinates for each of the occupied trigger zones and leave out trigger zones that do not have part of coalition in zone. 

I beleive you should reconsider the UX of that design. Radio Menus are there so that you can request information. You seem to want to re-purpose the menu items on that by calling up the F10 menu, the items offered up to choose from already provide the information you are looking for in their titles. Although that is possible, since you are using the radio items against their design, it will be awkward, and waste a lot of performance (these menu items hate to be generated every so often (every second?) in advance on the off-chance that you might want to call them up. Multiply that with any other player who might be able to use that, and you are about to congest multiplayer network with unnecessary menu information broadcast to all players, every minute.

I recommend a different approach: Set up one menu item "Get Target Info" for each zone, and a top-level item 'Closest Active Zones'. Each dedicated Target Zone item provides all current info upon request, or 'Zone currently inactive', and the top-level lists the closest active target zones with their priority targets.

Of course, none of the above can be done without Lua.

Posted (edited)
9 hours ago, 104th_Money said:

Ok guys, so what I am trying to do is set up a mission which uses the F10 menu to let players know where there are target taskings available.

So for instance, I would like to have 20 target areas each inside of its own trigger zone. In those trigger zones if there is part of a coalition in zone I would like to have a radio item in the F10 menu that displays a message to coalition with target priority, target types and grid coordinates for each of the occupied trigger zones and leave out trigger zones that do not have part of coalition in zone. 

I would also like this to be up to date information so if a target area is destroyed and there are no part of coalition in zone, every time the player checks the F10 menu for available targets, it would only display messages with current targets.

So say target area 1, 3 and 5 have targets, using the part of coalition in zone conditions would put those 3 messages to coalition in F10 menu.

If the other 17 target areas do not have part of coalition in zone, no messages would be displayed for those target areas. If units then moved into 5 other unoccupied trigger zones but left 1 other previously occupied trigger zone it would show messages for the 5 new trigger zones, the 2 previously still occupied zones and remove the message for the 1 now unoccupied zone for a total of 7 messages.

Im not even sure if I am making sense in what I am asking but my only experience with this is to spawn units with radio menu items.

Any help or suggestions would be greatly appreciated.

 

 

You can use the switched condition to add and remove the radio menu items as part of coalition moves in and out of the zone.

In the below example, there are two target areas. Four trucks start out of both zones, and there are no available radio messages.
2 trucks head towards the zones, 2 lead trucks, and 2 trailing behind.
Once the lead trucks reach the zones, two radio items are available in the F10-Other. They are displayed in the order they are created.
I then destroyed the two lead trucks, radio items are removed
Once the trailing trucks reach the zone, the radio items come back.


radio trigger.miz

Sorry if I'm teaching you how to suck eggs here. Best I can do.

As for target types, all I can think of is setting multiple message triggers that have several conditions for activation.

eg
Part of coalition in zone 1 enables Radio item 1
selecting Radio item 1 sets flag 1 to 1(true)

Message trigger conditions = Flag 1 is 1 and unit/group 1 is in zone (unit 1 is a truck)
Message to send - truck spotted in area 1 

Message trigger conditions = Flag 1 is 1 and unit/group 2 is in zone (unit 2 is a Smerch)
Message to send - Smerch spotted in area 1

That is going to take forever to set up though. 

Edited by jonsky7
Posted

@cfrag @jonsky7 Thank you both for taking the time to provide a look into how to accomplish this.

@cfrag I never knew that lua had the ability to do that, unfortunately my entire lua scripting skill is just editing a lua file...When i look at lua scripts I just get lost like its a foreign language to me. I do know that its very powerful and can accomplish things that cant be done in the ME. What I will do is look at other peoples lua scripts that may be similar and see if I can adapt or figure out how to do it.

@jonsky7 Thanks for taking the time to put that example together for me, I did not know how to do a radio item remove. Looking at your mission file sparked a possible idea that would make what I am trying to do less resource intensive and easier.

I appreciate both of you.

 

  • Thanks 1

Intel i9-13900k, Asus Z790-E Gaming Wi-fi 2 motherboard, 64gb Corsair Vengeance LPX DDR5-6400 RGB ram 2x32gb XMP2 profile, 4TB Crucial T700 PCIE 5.0 SSD internal, 2TB Crucial T700 PCIE 5.0 SSD internal, Asus ROG Strix OC GeForce RTX 4090, Corsair 7000X Case with 5 x 120mm side mounted intake fans and 3 x 140mm top mounted exhaust fans, 1 x 140mm rear mounted exhaust fans, front mounted Corsair H150i Elite Capellix 360mm liquid cooler w/Elite LCD with 6 x 120mm fans in 3 push, 3 pull intake configuration, 1 x 32" Samsung 3840x2160 display, 1x 32" Asus 2560x1440 display, TrackIR5 w/pro clip, Thrustmaster Warthog stick and throttle, CH Fighterstick Pro and Pebble Beach Velocity pedals. 

  • Recently Browsing   0 members

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