DCS World Typescript
    Preparing search index...
    interface l_missionCommands {
        addCommand<T>(
            name: string,
            path: MissionCommandPath | undefined,
            callback: (this: void, argument: T) => void,
            argument: T,
        ): MissionCommandPath;
        addCommandForCoalition<T>(
            coalitionId: number,
            name: string,
            path: MissionCommandPath | undefined,
            callback: (this: void, argument: T) => void,
            argument: T,
        ): MissionCommandPath;
        addCommandForGroup<T>(
            groupId: number,
            name: string,
            path: MissionCommandPath | undefined,
            callback: (this: void, argument: T) => void,
            argument: T,
        ): MissionCommandPath;
        addSubMenu(name: string, path?: MissionCommandPath): MissionCommandPath;
        addSubMenuForCoalition(
            coalitionId: number,
            name: string,
            path?: MissionCommandPath,
        ): MissionCommandPath;
        addSubMenuForGroup(
            groupId: number,
            name: string,
            path?: MissionCommandPath,
        ): MissionCommandPath;
        doAction(actionId: number): void;
        removeItem(path?: MissionCommandPath): void;
        removeItemForCoalition(
            coalitionId: number,
            path?: MissionCommandPath,
        ): void;
        removeItemForGroup(groupId: number, path?: MissionCommandPath): void;
    }

    Hierarchy (View Summary)

    Index
    • Dispatches the numeric action index associated with a radio-command item. This low-level index is normally supplied by DCS's radio-command UI rather than constructed by mission scripts.

      Parameters

      • actionId: number

        Runtime action index.

      Returns void

      Nothing.

      `missionCommands.doAction(actionId);`
      

      %DCS_INSTALL_DIR%/Scripts/UI/RadioCommandDialogPanel/RadioCommandDialogsPanel.lua:177