AI Systems: Difference between revisions

Jump to navigation Jump to search
m
Line 91: Line 91:
* Introducing certain characters into the XML file, even as part of a comment, will cause the file to choke.  These include &, <, and --.
* 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  
Most of the parameters are self-explanatory. The "type" of object can be one of [[AI_Systems#Types_of_AI_Objects|Types_of_AI_Objects]] (see above).
* aircraft
 
* wingman
* tanker
* carrier
* ship
* escort
* groundvehicle
* thunderstorm
* thermal
* ballistic
* static
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:
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">
<syntaxhighlight lang="xml">
546

edits

Navigation menu