79135 4 Posted August 18, 2019 Share Posted August 18, 2019 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 https://wrobot.eu/forums/topic/11576-check-flight-masters-in-the-list/ Share on other sites More sharing options...
Droidz 2742 Posted August 18, 2019 Share Posted August 18, 2019 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); } 79135 and Matenia 2 Link to comment https://wrobot.eu/forums/topic/11576-check-flight-masters-in-the-list/#findComment-55590 Share on other sites More sharing options...
79135 4 Posted August 18, 2019 Author Share Posted August 18, 2019 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 https://wrobot.eu/forums/topic/11576-check-flight-masters-in-the-list/#findComment-55591 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now