574
edits
No edit summary |
(→Controlling scenario aircraft: Added info on how to control spawned scenario aircraft. Thanks for the info James.) |
||
Line 217: | Line 217: | ||
The following how-to shows you how to animate a tail-dragger airplane so that its pitch attitude looks proper for the AI aircraft's airpeed. This is not needed for aircraft with tricycle landing gear. | The following how-to shows you how to animate a tail-dragger airplane so that its pitch attitude looks proper for the AI aircraft's airpeed. This is not needed for aircraft with tricycle landing gear. | ||
=== Controlling scenario aircraft === | |||
After a scenario has been loaded, the aircraft can be controlled with properties. | |||
For example to control a tanker, locate it in /ai/models, for example ai/models/tanker[0], and change properties under ai/models/tanker[0]/control/ | |||
{| class="wikitable" | |||
! property !! description | |||
|- | |||
| controls/flight/lateral-mode | |||
| Controls whether to change the aircraft roll target directly, or set a heading target. Valid values are "roll" or "hdg". | |||
|- | |||
| controls/flight/target-hdg | |||
controls/flight/target-roll | |||
| Depending on what lateral-mode is set to edit these targets for the aircraft lateral flight. | |||
|- | |||
| controls/flight/vertical-mode | |||
| Controls whether to change the aircraft pitch target directly, or set a altitude target. Valid values are "pitch" or "alt". | |||
|- | |||
| controls/flight/target-alt | |||
controls/flight/target-pitch | |||
| Depending on what vertical-mode is set to, edit these targets for the aircraft vertical flight. | |||
|- | |||
| controls/flight/target-spd | |||
| Edit this to set target speed. | |||
|} | |||
=== Using Interpolation Tables === | === Using Interpolation Tables === |
edits