DCS func addCommand: Difference between revisions
From DCS World Wiki - Hoggitworld.com
No edit summary |
No edit summary |
||
| Line 61: | Line 61: | ||
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 | 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 function | local function displayRequests(vars) | ||
if vars.flyby == true then | if vars.flyby == true then | ||
trigger.action.outText("Roger that Ghostrider, you may do a flyby.", 20) | trigger.action.outText("Roger that Ghostrider, you may do a flyby.", 20) | ||
