Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

Iterate through flight plans


Ricardo Sousa
 Share

Recommended Posts

Ricardo Sousa
Posted
Posted

Hello, I am experimenting with creating plugins, and I am having a hard time knowing where to access all known flightplans to euroscope. I want to iterate through them to read and modify data from the CFlightPlan class. Ideally I actually only want to iterate through a certain departure airport fpl list, but I don't think that's possible.

I had a dumb attempt at it with the loop bellow, but obviously that was never going to work

while ( TRUE ) {
        fplNext = FlightPlanSelectNext(fpl2);
        if (!fplNext.IsValid()) {
            break;
        }

So how do I create an array with for example all departing fpls from LPPT?

Link to comment
Share on other sites

 Share