Howto:Implement aerial refueling capability: Difference between revisions

Jump to navigation Jump to search
m
Robot: Cosmetic changes
m (Bot: Automated text replacement (-aircrafts +aircraft))
m (Robot: Cosmetic changes)
Line 1: Line 1:
This [[:Category:Howto|hotwo]] teaches you '''how to implement [[Howto: Aerial refueling|aerial refueling]] capability''' to both tanker and/or receiver [[aircraft]].
This [[:Category:Howto|hotwo]] teaches you '''how to implement [[Howto: Aerial refueling|aerial refueling]] capability''' to both tanker and/or receiver [[aircraft]].


==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 intact. The radar is needed to check if you are close enough from the tanker, the refuel part tell wich 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 exemple). The aar.nas check if you're close enough , if you have the same type,and if yes refuel your tanks.
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 intact. The radar is needed to check if you are close enough from the tanker, the refuel part tell wich 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 exemple). The aar.nas check if you're close enough , if you have the same type,and if yes refuel your tanks.


Line 26: Line 26:
The aircraft can receive fuel from the KA6 with the above code. To receive fuel from the [[KC-135]], replace 'probe' with 'boom'.
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==
== Tanker aircraft ==


To allow your plane to be used as a tanker by others players, you only need to add the following blocks of code to your aircraft's model .xml file (usually located in <tt>Aircraft/.../Models/</tt>):
To allow your plane to be used as a tanker by others players, you only need to add the following blocks of code to your aircraft's model .xml file (usually located in <tt>Aircraft/.../Models/</tt>):


  <multiplay>
  <multiplay>
Line 49: Line 49:


and now switch this property true or false to allow following aircraft to refuel or not.
and now switch this property true or false to allow following aircraft to refuel or not.


[[Category:Aircraft enhancement|Implement aerial refueling capability]]
[[Category:Aircraft enhancement|Implement aerial refueling capability]]
[[Category:Howto|Implement aerial refueling capability]]
[[Category:Howto|Implement aerial refueling capability]]

Navigation menu