deathizpro 12 Posted August 15, 2016 Couldn't find it for the life of me in the API or any of the classes. Maybe I'm overlooking how it's labeled or something, but how do you check if the current script is running/paused/stopped?
Mad 86 Posted August 15, 2016 That literally didnt answer his question at all. You can use the ScriptManager class, just pass in the instance of your instance by calling Client.getInstance() or something like that
deathizpro 12 Author Posted August 15, 2016 That literally didnt answer his question at all. You can use the ScriptManager class, just pass in the instance of your instance by calling Client.getInstance() or something like that Thanks! Not sure why I couldn't find that earlier. If I call Client.getInstance() that's returning the current clicked instance loaded in the client, and not the current script instance correct? Seems like it. Then I'd be looking for something along the lines of Client.getInstance().getScriptManager().isRunning() right?
Mad 86 Posted August 15, 2016 Thanks! Not sure why I couldn't find that earlier. If I call Client.getInstance() that's returning the current clicked instance loaded in the client, and not the current script instance correct? Seems like it. Then I'd be looking for something along the lines of Client.getInstance().getScriptManager().isRunning() right? Yessir
Silabsoft 13 Posted August 16, 2016 for the current script I'd just use script.getCurrentState() you will be returned one of the following:PAUSED RUNNING SKIP START STOPHowever If you are running more than one client you would need to use the Client.getInstance method.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.