Howto:Implement aerial refueling capability: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Created page with 'This hotwo teaches you '''how to implement aerial refueling capability''' to both tanker and/or receiver aircraft. ==Receiver…')
 
m (Apparently radar is required...)
Line 2: Line 2:


==Receiver aircraft==
==Receiver aircraft==
Add the following blocks of code to your aircraft's -set.xml file (after the </sim> tag). Make sure to check for pre-existing blocks/structures and leave them in tact.
Add the following blocks of code to your aircraft's -set.xml file (all after the </sim> tag). Make sure to check for pre-existing blocks/structures and leave them in tact.
 
<instrumentation>
  <radar>
  <range type="int" archive="y">20</range>
  <minimized type="bool" archive="y">false</minimized>
  </radar>
</instrumentation>
 
  <systems>
  <systems>
   <refuel>
   <refuel>

Revision as of 11:19, 29 August 2010

This hotwo teaches you how to implement aerial refueling capability to both tanker and/or receiver aircraft.

Receiver aircraft

Add the following blocks of code to your aircraft's -set.xml file (all after the </sim> tag). Make sure to check for pre-existing blocks/structures and leave them in tact.

<instrumentation>
 <radar>
  <range type="int" archive="y">20</range>
  <minimized type="bool" archive="y">false</minimized>
 </radar>
</instrumentation>
<systems>
 <refuel>
  <type>probe</type>
  <serviceable type="bool">true</serviceable>
 </refuel>
</systems>
<nasal>
 <aar>
  <file>Aircraft/Generic/aar.nas</file>
 </aar>
</nasal>

The aircraft can receive fuel from the KA6 with the above code. To receive fuel from the KC-135, replace 'probe' with 'boom'.

Tanker aircraft

Add the following blocks of code to your aircraft's -set.xml file (after the </sim> tag):

<systems>
 <refuel>
  <type>probe</type>
 </refuel>
</systems>
<nasal>
 <aar>
  <file>Aircraft/Generic/aar.nas</file>
 </aar>
</nasal>

And add these lines to your aircraft's model .xml file (usually located in Aircraft/.../Models/):

<multiplay>
 <refuel>
  <type>probe</type>
 </refuel>
</multiplay>

Replace 'probe' with 'boom' in both files for a boom-equipped tanker. This influences what aircraft can receive fuel!