Difference between revisions of "DCS singleton missionCommands"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
Line 3: Line 3:
 
|cName= missionCommands
 
|cName= missionCommands
  
|vNum= 1.2.0
+
|vNum= 1.2.4
  
 
|desc= The missionCommands singleton allows for greater access and flexibility of use for the F10 Other radio menu. Added commands can contain sub-menus and directly call lua functions.  
 
|desc= The missionCommands singleton allows for greater access and flexibility of use for the F10 Other radio menu. Added commands can contain sub-menus and directly call lua functions.  
Line 31: Line 31:
  
 
}}
 
}}
 +
[[Category:Scripting|missionCommands]]
 +
[[Category:Game Patch 1.2.4|missionCommands singleton]]

Latest revision as of 22:17, 17 March 2022


Singleton: missionCommands Added with: 1.2.4
Description: The missionCommands singleton allows for greater access and flexibility of use for the F10 Other radio menu. Added commands can contain sub-menus and directly call lua functions.
Functions: addCommand, addSubMenu, removeItem, addCommandForCoalition, addSubMenuForCoalition, removeItemForCoalition, addCommandForGroup, addSubMenuForGroup, removeItemForGroup
Enumerators and Other Data: Functions that add commands and submenus return a "path" table. This table is indexed numerically and shows where in the F10 menu a command resides.
 {
   [1] = "Command in Root",
 }
 {
   [1] = "SubMenuInRoot", 
   [2] = "Command in the submenu",
 }
 { 
   [1] = "SubMenuInRoot", 
   [2] = "SubMenuInRootSubMenu", 
   [3] = "Command in nested submenu",
 }
Notes: