Simple AI with Jump Links issues

Hi all,

I have a very simple AI on a side scroller template, in which i have 2 AI, one to follow my character, and another one to go to a specific location (target point).

This is the move to specific location BT:

This is the following BT:

And this is what happens, the first part of the video (move to target) seems that is working ok (but some times my minion waits one milisecond after the jump). The second one (follow) is doing some weird stuff, the first jump, it turns back and then turns again to me and the second jump is not doing nothing:

I’m stuck with this problems several weeks, I’ll appreciate so much the help :smiley:

Regards,
David.

There’s a bunch of issues here :confused:

The easier one, the AI jumping off and then going back a bit - this is due to AI overshoting the landing location while jumping down. You can address that by making jump-down end locations closer to where AI would land while following it. A real, proper solution would be to implement a custom path following component that would take that into consideration and just switch to the next path segment after landing.

The AI getting stuck against the wall while following the player is an effect of bugs in “Move to actor” mechanics. Some have been fixed in 4.7.3, some wait for 4.7.4. All should be fine on the github version. If you tried that let me know if you still experience issues.

Cheers,

–mieszko

Thx for the answers, I tried what you said,

First, I tried moving the jump-down end location, but seems that wasn’t working, so i tried using “SetNextMoveSegment();” everytime my AI finds a jumpflag, but this solve this problem only in the 90% of the cases.

For the other issue, I’m using the git version with the release branch, I just did a pull, and this problem is still here, but just only a few times. I put some debugs on my custompath, and seems when my AI is following other actor is ignoring that jumpflags.

Both problems appears more frequently when my actor is moving close to the AI character.

Thx :smiley: