AI Systems: Difference between revisions

Jump to navigation Jump to search
Line 116: Line 116:


It looks much the same as the ship AI code. There are two differences, the <class> item and the <bank> item.  
It looks much the same as the ship AI code. There are two differences, the <class> item and the <bank> item.  
* The <code>class</code> specifies the type of aircraft and its flight characteristics. You can find the allowed values for this property in {{fgdata file|AI/Aircraft/performancedb.xml}}. If the class is set to "tanker" the airplane actually is configured to be a tanker, than it will allow you to refuel if you can get close behind it. The bank is of course similar to the ship's rudder. In the above example the A-4 will be orbiting to the left at 15 degrees of bank.  
* The <code>class</code> specifies the type of aircraft and its flight characteristics. You can find the allowed values for this property in {{fgdata file|AI/Aircraft/performancedb.xml}}. If the class is set to "tanker" the airplane actually is configured to be a tanker, than it will allow you to refuel if you can get close behind it (see also [[Howto:Aerial_refueling]]).  
* The bank is of course similar to the ship's rudder. In the above example the A-4 will be orbiting to the left at 15 degrees of bank.  


You can also create a ship or airplane with a flight plan. In this case the object will follow the flight plan, and then delete itself when it reaches the end. The flight plans are kept in {{fgdata file|AI/FlightPlans}}. To create an airplane with a flightplan do this:
You can also create a ship or airplane with a flight plan. In this case the object will follow the flight plan, and then delete itself when it reaches the end. The flight plans are kept in {{fgdata file|AI/FlightPlans}}. To create an airplane with a flightplan do this:
648

edits

Navigation menu