How do I increase A.I Speed

So I am developing an A.I for my game and I am using a behavior tree

My first branch has the highest value and it actives if the user is 1000 units away, the character will move to a given point

But I want them to run there but only on that branch none of the others

So I am trying to set my character movement to change but I am a bit stuck on how to do it (this is what I have so far)

Here is a look at my tree

and here is the movement bp thats not working for me

I have been able to tell thats its a problem in the movement bp as when I simulate it never stops, so it can move to the Movement execute (Which means he doesnt Move at all)

Any help would be great

Once you are at the point that you no longer want the AI to run fast make another task to fire after to set the max walk speed back to the starting speed. That should allow for the rest of the tasks to execute with the AI moving at the normal speed.

But the problem is that the A.I is not moving AT ALL ??

Yes I have a navmesh, the A.I was working grand before I added the movement increase, now he just stands still, I am assuming that my movement speed increase blueprint is not working

It is a task and what do u mean by a finish execute ?

Oh…You never mentioned the AI wasn’t moving at all, or I have missed it somewhere above. Do you have a NavMesh Bounds in the level?

Oh I just noticed the movement increase is set as a service, make it a task and give it a finish execute and it should start working…sorry I missed that earlier I thought it was a task already.

It says BTService in the screenshot after the set max walk speed you need to add a finish execute node right-click and start typing finish execute it should show up, once it does you need to connect it and check the bool to true, without it the task will never return as finished executing which is why it is stuck not doing anything.

OK I think your cast is failing, from cast failed add a print string and from Owning actor drag it to the string value on the print string node so it will print the owning actor display name. Where did you get the CheckTrue bool variable? I meant just check the box for the bool on finish execute you didn’t have to make a new variable.

Thats just what I called it, (it is a task) and I tryed putting in the boolean and the excute no look that tree still gets stuck on the movement increase heres what i have

I did that and it is failing it just prints out Aries Controller 23, if I stop and run again it gos to 24 on so on ?

GOT IT,

Thanks for the help debugging

Perfect glad you got it, don’t forget to mark this as resolved/answered.