Jump to content

Recommended Posts

Posted

Radio menu

 

do

 

trigger.action.addOtherSubmenu('155 Missions','all',nil) -- ok

trigger.action.addOtherCommand('Sead', 1,'all','155 Missions')-- ok

trigger.action.addOtherCommand('Cas', 2,'all','155 Missions')-- ok

 

 

 

 

trigger.action.addOtherSubmenu('Frog','all','155 Missions') -- ok

trigger.action.addOtherCommand('Frog 1', 4,'all','155 Missions','Frog...') -- Problem costruite the submenu position

 

end

 

im problem to submenu position menuPath !!

 

Sorry my eng!!

====VIAF====

Spinter 155° "Pantere Nere"

 

TsSimComms

 

My Site aiupgrade.net

 

 

 

Posted (edited)
Radio menu

 

do

 

trigger.action.addOtherSubmenu('155 Missions','all',nil) -- ok

trigger.action.addOtherCommand('Sead', 1,'all','155 Missions')-- ok

trigger.action.addOtherCommand('Cas', 2,'all','155 Missions')-- ok

 

 

 

 

trigger.action.addOtherSubmenu('Frog','all','155 Missions') -- ok

trigger.action.addOtherCommand('Frog 1', 4,'all','155 Missions','Frog...') -- Problem costruite the submenu position

 

end

 

im problem to submenu position menuPath !!

 

Sorry my eng!!

Incorrect usage.

 

trigger.action.addOtherSubmenu and trigger.action.addOtherCommand both return menuPath objects. To assign an item to a submenu, you must use the menuPath object returned from the trigger.action.addOtherSubmenu function:

 

do
local MLRSMenu = trigger.action.addOtherSubmenu('MLRS Fire Missions')
trigger.action.addOtherCommand('Fire on Kutaisi', 101, 'all', MLRSMenu)
trigger.action.addOtherCommand('Fire on Senaki', 102, 'all', MLRSMenu)
trigger.action.addOtherCommand('Fire on Kobuleti', 103, 'all', MLRSMenu)

local artyMenu = trigger.action.addOtherSubmenu('Artillery Fire Missions')
trigger.action.addOtherCommand('Fire on Zugdidi', 104, 'all', artyMenu)
trigger.action.addOtherCommand('Fire on Gali', 105, 'all', artyMenu)

end

 

Also, see attached mission for an example.

 

You also need to use the menuPath item if you want to remove an item.

 

Also, as a reminder: radio menu items are for single player/multiplayer HOST only.

add other menu items demo.miz

Edited by Speed

Intelligent discourse can only begin with the honest admission of your own fallibility.

Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/

Lua scripts and mods:

MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616

Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979

Now includes remote server administration tools for kicking, banning, loading missions, etc.

Posted

thanks for the reply but I have a problem, the menu always see is that I'm red and blue!

 

Sorry!

the coalition "all red blue" is displayed in the menu?

If I put for example the red menu sees only the red users?

====VIAF====

Spinter 155° "Pantere Nere"

 

TsSimComms

 

My Site aiupgrade.net

 

 

 

Posted
thanks for the reply but I have a problem, the menu always see is that I'm red and blue!

 

Sorry!

the coalition "all red blue" is displayed in the menu?

If I put for example the red menu sees only the red users?

 

From:

 

http://en.wiki.eagle.ru/wiki/Simulator_Scripting_Engine/DCS:_World_1.2.1/Part_1#trigger

 

coalition

coalition the command will available for. Has no effect now. Equals to 'all' by default.

 

Note the bolded part.

 

For now, if you want coalition-specific commands (that also work in multiplayer!) you have to use Slmod.

Intelligent discourse can only begin with the honest admission of your own fallibility.

Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/

Lua scripts and mods:

MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616

Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979

Now includes remote server administration tools for kicking, banning, loading missions, etc.

  • 1 year later...
  • Recently Browsing   0 members

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