penumbra 4 Posted January 10, 2018 Share Posted January 10, 2018 Hello, I'm having problems with my script that it should stop executing when the bot is on it's way to a flight mater (preferably when it is close to it) I've noticed that the log produces a "11:35:55.664 - [FlightMaster] Try to take taxi at <location>" but I am unsure if i can use something like the below to see if the bot is in a "seek out flightmaster"-state robotManager.Helpful.Logging.Status == "Regeneration" Does anyone know, or is there some documentation regarding the functions that I can call to understand where the bot is going and the purpose? Thanks! Matenia 1 Link to comment https://wrobot.eu/forums/topic/8234-bot-on-the-way-to-flightmaster/ Share on other sites More sharing options...
Droidz 2738 Posted January 12, 2018 Share Posted January 12, 2018 Hello, you can try to read log: robotManager.Events.LoggingEvents.OnAddLog += delegate(Logging.Log log) { if (!string.IsNullOrWhiteSpace(log.Text) && log.Text.StartsWith("[FlightMaster] Try to take taxi at ")) { // ... } }; happiness7 and Matenia 2 Link to comment https://wrobot.eu/forums/topic/8234-bot-on-the-way-to-flightmaster/#findComment-37647 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