Jump to content

Check flight masters in the list


79135

Recommended Posts

How to check what a flight master is active in the list at the char?

            if (Taxi.TaxiList.Nodes.All(o => o.Name != "AAA"))
            {
                flyMasterEntry = 2941; flyMasterPosition = new Vector3(-6555, -1165, 310); nodeName = "AAA";
            }

The code only add in to data base of flight masters, but without mark of active.

Link to comment
Share on other sites

1 minute ago, Droidz said:

Hey,


        if (Taxi.TaxiList.Nodes.All(o => o.Name != "AAA"))
        {
             var taxi = new TaxiNode(int slotIndex, string name, Vector3 position, int continentId);
             taxi.Active = true;
             Taxi.TaxiList.AddOrEditForCurrentPlayer(taxi);
        }

 

Thanks a lot

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...