Jump to content

Recommended Posts

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!

Link to comment
https://wrobot.eu/forums/topic/8234-bot-on-the-way-to-flightmaster/
Share on other sites

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 "))
    {
        // ...
    }
};

 

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...