DCS func addCommand: Difference between revisions
From DCS World Wiki - Hoggitworld.com
m 1 revision imported |
Gillogical (talk | contribs) No edit summary |
||
| Line 59: | Line 59: | ||
|examples= | |examples= | ||
The sample below will generate a base menu accessed via F10 called "Display Requests" for all users with two sub-items for a negative or positive response | |||
local negativeReply = missionCommands. | local displayRequests = missionCommands.addCommand( "Display Requests", nil, displayMsg, {flyby = false}) | ||
local positiveReply = missionCommands. | local negativeReply = missionCommands.addCommand( "Negative Ghostrider", displayRequests , displayMsg, {flyby = false}) | ||
local positiveReply = missionCommands.addCommand( "Roger Ghostrider", displayRequests , displayMsg, {flyby = true}) | |||
