I was looking for a way to add submenus to the F10 menu for user operated flags. I thought I found a way after googling using the following:
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
The problem is the resulting code and test mission from here: http://forums.eagle.ru/showthread.php?t=98558
gives me this error:
Any idea what the issue is?