Jump to content

WebWalkEvent : setBreakCondition : Unseen Delay?


Recommended Posts

Posted (edited)

Hello all, thanks for reading!

 

So, I am putting together a lil script that requires some custom obstacle handling. All fine and dandy, I got the handler written and if I let it run while I path manually, it blazes through the obstacle at breakneck speeds! HOWEVER, if I use the setBreakCondition feature of WebWalkEvent the script takes a good 1-3 seconds before it even begins handling the obstacle. 

Script's current delays as set by me:
onLoop(): 200

 WebWalkEvent evt = new WebWalkEvent(targetArea);
                evt.setBreakCondition(new Condition() {

                    @Override
                    public boolean evaluate() {
                        return dialogues.inDialogue();
                    }
                });
                execute(evt);

I figured it could be the dialogues.inDialogue(); check, but generally it is returning extremely quick (so I don't think it is causing the 1-3 second delay).

Note this isn't a killer for the script, just very noticeable and slow. Anyone know what's up?

Thanks in advance for your advice,

Avid

 

EDIT: Upon timing the delay, it's anywhere from 1-10 seconds. The ten second delays, seeming like forever!

Edited by avid

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...