AI aircraft Automation (help)

this my first step on AI aircraft, and still big plan, due to a request so I try to figuring it out first
what I need for a help?

I want my AI aircraft (OSPREY), open the door if above 3000 feet. I'll use door variable for extending fuel drogue. where should I put the automation command (code)?



Resource contributor
You put it in the modeldef.xml (FSX or later) or (FS2004) files, just like a flyable aircraft.

Note that many FS variables are not usable for AI aircraft. I have never used altitude, so I don't know if you can use that or not.