Jump to content

Need help crossing wilderness ditch with webWalking


Alakazizam

Recommended Posts

I'm probably not doing this right but I'm trying to make a webWalking event that breaks when the caution message appears when crossing the wilderness ditch. As of now it stops at the ditch for a while and then attempts to cross again some time after. This is what I'm working with at the moment.

My function.

void WalkToWithBreak(Position MyPosition, boolean BreakCondition) {
        WebWalkEvent MyEvent = new WebWalkEvent(MyPosition);
        MyEvent.setBreakCondition(new Condition() {
            @Override
            public boolean evaluate() {
                return BreakCondition;
            }
        });
        execute(MyEvent);
    }

 

Calling my function.

WalkToWithBreak(AssessmentZone.getRandomPosition(), getWidgets().get(475, 11, 1) != null && getWidgets().get(475, 11, 1).isVisible());

 

Link to comment
Share on other sites

21 minutes ago, Gunman said:

@Alakazizam Try high break priority instead

setHighBreakPriority(boolean highPriority)

Allows for break conditions to be checked during waits, default value is false.

 

I've tried

void WalkToWithBreak(Position MyPosition, boolean BreakCondition) {
        WebWalkEvent MyEvent = new WebWalkEvent(MyPosition);
        MyEvent.setHighBreakPriority(BreakCondition);
        execute(MyEvent);
    }

And that did not work. 

Link to comment
Share on other sites

6 minutes ago, Alakazizam said:

 

I've tried

void WalkToWithBreak(Position MyPosition, boolean BreakCondition) {
        WebWalkEvent MyEvent = new WebWalkEvent(MyPosition);
        MyEvent.setHighBreakPriority(BreakCondition);
        execute(MyEvent);
    }

And that did not work. 

Oh you're using a boolean, it's value is not being rechecked. You're basically just sending false the whole time. Use something like BooleanSupplier

  • Like 1
Link to comment
Share on other sites

50 minutes ago, Gunman said:

Oh you're using a boolean, it's value is not being rechecked. You're basically just sending false the whole time. Use something like BooleanSupplier

Yeah, I couldn't wrap my head around that so I made a work around lol. I have a LOT of experience with blueprint coding in Unreal Engine, but when it comes to actually WRITING code, I get lost. 

I just made a massive area that covers the wilderness. If I'm not in the area I run to a designated area by the ditch and interact with it and the warning widget and then carry on going where I was going lol.

 

Link to comment
Share on other sites

1 hour ago, Alakazizam said:

Yeah, I couldn't wrap my head around that so I made a work around lol. I have a LOT of experience with blueprint coding in Unreal Engine, but when it comes to actually WRITING code, I get lost. 

I just made a massive area that covers the wilderness. If I'm not in the area I run to a designated area by the ditch and interact with it and the warning widget and then carry on going where I was going lol.

It's fairly simple

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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