Addon Service Menu Setup - Fullerpj/United-States-Air-Force-Mod GitHub Wiki

Below is a template for enabling and customizing the USAF service menu options for your aircraft.

class cfgVehicles
{
    class YourAircraft
    {
        class USAF_ServiceMenu
        {
            enabled = 1;
            loadOutCustomization = 1; // Allow user to modify each pylon. Default: 0
            openBays = 1; // Open the bays when entering the menu. Default: 1
            addBaysToggle = 1; // Add a button for the user to toggle the bays. Default: 1
            
            // The starting position of the camera when entering the menu
            // In a mission, set USAF_debug = true, open the service menu,
            // then press Ctrl+Alt+C to export current camera pos to clipboard, and paste here
            cameraPos[] = {{0,0,-0.631},326.326,5.972,26.005};
			
            animationToggles[] = { // custom animation buttons, optional
                {
                    "f22_canopy", // animation name
                    "Canopy", // button display name
                    0, // value animation will be set to when service menu is opened
                    0, // value animation will be set to when service menu is closed
                    1, // 1 = animation source, 0 - normal animation
                    1 // 1 = user can toggle within menu, 0 - only forced values on menu open/close
                },{
                    "refuel_door", // animation name
                    "Refuel Door", // button display name
                    0, // value animation will be set to when service menu is opened
                    0, // value animation will be set to when service menu is closed
                    1, // 1 = animation source, 0 - normal animation
                    1 // 1 = user can toggle within menu, 0 - only forced values on menu open/close
                }
            };
        };
    };
};