Results 1 to 2 of 2
  1. #1
    AEF Member
    Join Date
    Apr 2013
    Location
    Shepparton Victoria
    Posts
    185

    3 way switches for the AV8B

    You need to edit Default.lua file located "DCS World OpenBeta\Mods\aircraft\AV8BNA\Input\AV8BNA\joystic k"

    Below "join(res.keyCommands,{" add the block of text seen below.

    If it worked you should see 2 new columns in the drop down menu in key binds for the Harrier, Shortcuts and Toggle switches, from there bind what you like.

    I highly recommend doing this as it makes your flaps work like the A-10's, up middle and down. it also adds some useful ON else OFF switches which help with airbrake. Plus the pinky switch works with the external lights.

    {down=fcs_commands.Switch_FLAP_SELECT,up=fcs_comma nds.Switch_FLAP_SELECT,cockpit_device_id=devices.V REST,value_down=1.0,value_up=0.5,name='flaps cruse else auto',category='shortcuts'}, {down=fcs_commands.Switch_FLAP_SELECT,up=fcs_comma nds.Switch_FLAP_SELECT,cockpit_device_id=devices.V REST,value_down=0.0,value_up=0.5,name='flaps vstol else auto',category='shortcuts'},
    {down = iCommandPlaneGearUp,up = iCommandPlaneGearDown, name = _('Landing Gear UP else DOWN'), category = _('shortcuts')},
    {down=smc_commands.Switch_Master_Arm,up=smc_comman ds.Switch_Master_Arm,cockpit_device_id=devices.SMC ,value_down=1.0,value_up=0.0,name='MasterArm ON else OFF',category='shortcuts'},
    {down=engine_commands.Switch_H20,up=engine_command s.Switch_H20,cockpit_device_id=devices.DECS,value_ down=1.0,value_up=0.5,name='Water TO else OFF',category='shortcuts'},
    {down=engine_commands.Switch_H20,up=engine_command s.Switch_H20,cockpit_device_id=devices.DECS,value_ down=0.0,value_up=0.5,name='Water LN else OFF',category='shortcuts'},
    {down = iCommandPlaneAirBrakeOn,up = iCommandPlaneAirBrakeOff , name = _('Airbrake ON else OFF'), category = _('shortcuts')},
    {down = fcs_commands.Switch_ANTISKID, up = fcs_commands.Switch_ANTISKID,cockpit_device_id=dev ices.FLIGHTCONTROLS,value_down=0.0,value_up=0.5,na me='Anti-Skid',category='shortcuts'},
    {down=fcs_commands.Switch_FLAP_SELECT,up=fcs_comma nds.Switch_FLAP_SELECT,cockpit_device_id=devices.V REST,value_down=1.0,value_up=0.5,name='flaps cruse else auto',category='shortcuts'},
    {down=fcs_commands.Switch_FLAP_SELECT,up=fcs_comma nds.Switch_FLAP_SELECT,cockpit_device_id=devices.V REST,value_down=0.0,value_up=0.5,name='flaps vstol else auto',category='shortcuts'},
    {down = iCommandPlaneGearUp,up = iCommandPlaneGearDown, name = _('Landing Gear UP else DOWN'), category = _('shortcuts')},
    {down=smc_commands.Switch_Master_Arm,up=smc_comman ds.Switch_Master_Arm,cockpit_device_id=devices.SMC ,value_down=1.0,value_up=0.0,name='MasterArm ON else OFF',category='shortcuts'},
    {down=engine_commands.Switch_H20,up=engine_command s.Switch_H20,cockpit_device_id=devices.DECS,value_ down=1.0,value_up=0.5,name='Water TO else OFF',category='shortcuts'},
    {down=engine_commands.Switch_H20,up=engine_command s.Switch_H20,cockpit_device_id=devices.DECS,value_ down=0.0,value_up=0.5,name='Water LN else OFF',category='shortcuts'},
    {down = iCommandPlaneAirBrakeOn,up = iCommandPlaneAirBrakeOff , name = _('Airbrake ON else OFF'), category = _('shortcuts')},
    {down = fcs_commands.Switch_ANTISKID, up = fcs_commands.Switch_ANTISKID,cockpit_device_id=dev ices.FLIGHTCONTROLS,value_down=0.0,value_up=0.5,na me='Anti-Skid',category='shortcuts'},
    {down = ext_light_commands.Switch_EXT_LT_NORM_NVG, up = ext_light_commands.Switch_EXT_LT_NORM_NVG, cockpit_device_id = devices.LTEXT, value_down = 1, value_up = 0.5, name = _('EXT LT NVG/NORM Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
    {down = ext_light_commands.Switch_EXT_LT_NORM_NVG, up = ext_light_commands.Switch_EXT_LT_NORM_NVG, cockpit_device_id = devices.LTEXT, value_down = 0, value_up = 0.5, name = _('EXT LT OFF/NVG Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
    {down = ext_light_commands.Switch_LANDING_LT, up = ext_light_commands.Switch_LANDING_LT, cockpit_device_id = devices.LTEXT, value_down = 1, value_up = 0.5, name = _('LDG LT HVR/APRCH Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
    {down = ext_light_commands.Switch_LANDING_LT, up = ext_light_commands.Switch_LANDING_LT, cockpit_device_id = devices.LTEXT, value_down = 0, value_up = 0.5, name = _('LDG LT OFF/HVR Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
    {down = ext_light_commands.Switch_ANTI_COLL_LT, up = ext_light_commands.Switch_ANTI_COLL_LT, cockpit_device_id = devices.LTEXT, value_down = 1, value_up = 0, name = _('Anti-Collision LT Two Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
    {down = ext_light_commands.Switch_POS_LT, up = ext_light_commands.Switch_POS_LT, cockpit_device_id = devices.LTEXT, value_down = 1, value_up = 0.5, name = _('POS LT BRT/DIM Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
    {down = ext_light_commands.Switch_POS_LT, up = ext_light_commands.Switch_POS_LT, cockpit_device_id = devices.LTEXT, value_down = 0, value_up = 0.5, name = _('POS LT OFF/DIM Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
    {down = ext_light_commands.Knob_FORM_LT, up = ext_light_commands.Knob_FORM_LT, cockpit_device_id = devices.LTEXT, value_down = 1, value_up = 0, name = _('FORM LT Two Position knob'), category = { _('Toggle Switches'), _('Exterior Lights')}},
    Source material here
    https://forums.eagle.ru/showthread.php?t=196622
    https://forums.eagle.ru/showpost.php...9&postcount=19
    Last edited by Crypt; 3 Weeks Ago at 11:46 PM.

  2. #2
    They have defintately changed this around since I was using the LUA editor

    "161 SQN flys the AEF flag the highest"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •