I would like to take over an ATC controlled AI aircraft, fly it around for a bit, then return it to its flight plan so it can land , taxi to gate etc.
So far I have tried:
1)Setting waypoints. This part fine, the AI aircraft does exactly what it is told. However it is no longer ATC controlled as can be seen from the state variable of "unknown".
2) Loading a flight plan with AISetAircraftFlightPlan. Works well for sleeping aircraft on the ground, however I have not made it work with aircraft "enroute". When I do the plane just makes random turns or crashes into the ground.
A couple of questions:
a) Can a flight plan be created such that it starts "in the air" for given coordinates? Or, can it say "start from where ever you are in the world now and fly to the given destination"?
b) Is there a user guide to the flight plan XML?
c) Any other successful techniques for getting an AI aircraft back under ATC control after manual waypoints?
Thanks,
Simon
b)
So far I have tried:
1)Setting waypoints. This part fine, the AI aircraft does exactly what it is told. However it is no longer ATC controlled as can be seen from the state variable of "unknown".
2) Loading a flight plan with AISetAircraftFlightPlan. Works well for sleeping aircraft on the ground, however I have not made it work with aircraft "enroute". When I do the plane just makes random turns or crashes into the ground.
A couple of questions:
a) Can a flight plan be created such that it starts "in the air" for given coordinates? Or, can it say "start from where ever you are in the world now and fly to the given destination"?
b) Is there a user guide to the flight plan XML?
c) Any other successful techniques for getting an AI aircraft back under ATC control after manual waypoints?
Thanks,
Simon
b)

