Jump to: navigation, search

AI Systems

25 bytes added, 10:02, 4 May 2016
Scenario File definition
* Introducing certain characters into the XML file, even as part of a comment, will cause the file to choke. These include &, <, and --.
Most of the parameters are self-explanatory. The "type" of object can be one of "* aircraft", "ship", "* wingman * tanker* carrier", "* ship* escort* groundvehicle* thunderstorm", "* thermal", "* ballistic", "* static" and "wingman". The rest of the items give the AI object a model, a starting location, and a starting speed and direction. You use the <model> item to give the object any valid exterior model. You can even make the ship look like an airplane if you want! Note that the speed of the AI object is true airspeed, and since AI aircraft and ships don't feel wind or current then this also the ground speed. The "ship" type can also have a <rudder> value specified, which will cause the ship to move in a circle ({{itip|Use small values, five degrees or less, and right rudder is positive}}). Here is an example of how to create an aircraft AI object:
<syntaxhighlight lang="xml">
<!-- puts an A-4 north of KSFO, orbiting at 7000 ft -->

Navigation menu