Howto:Implement aerial refueling capability: Difference between revisions

Updates for recent AAR improvements
(Updates for recent AAR improvements)
Line 5: Line 5:


* Radar is needed to check if you are close enough from the tanker
* Radar is needed to check if you are close enough from the tanker
* Refuel defines what type of refueling you are capable of, and if your refuel system is ok to receive (use the serviceable property if you have a switch to open the refuel trap for example).  
* The <refuel> properties defines  
** what type of refueling you are capable of (probe and drogue, or boom)
** if your refuel system is ok to receive (use the serviceable property if you have a switch to open the refuel trap for example).  
** the offset of the probe/trap from the aircraft model origin
* aar.nas is the actual system that checks the two above mentioned criteria and if both are true, refuels your tanks.
* aar.nas is the actual system that checks the two above mentioned criteria and if both are true, refuels your tanks.


Line 20: Line 23:
   <type>probe</type>
   <type>probe</type>
   <serviceable type="bool">true</serviceable>
   <serviceable type="bool">true</serviceable>
  <offset-x-m>0</offset-x-m>
  <offset-y-m>0</offset-y-m>
  <offset-z-m>0</offset-z-m>
   </refuel>
   </refuel>
  </systems>
  </systems>
Line 46: Line 52:


For the moment, flyable tankers are: KC135, victor and KC130 (in <tt>Aircraft/c130</tt>) if you need an example.
For the moment, flyable tankers are: KC135, victor and KC130 (in <tt>Aircraft/c130</tt>) if you need an example.
To add an AI refuelling aircraft, add it to AI/tankers.xml.


=== Serviceable option ===
=== Serviceable option ===