i watched a tutorial about making an AI Bot with a Behaviour Tree. It followed some paths and also attacked the player if he came near.
Now im questioning myself what is the benefit of using the Behaviour Tree and how do i combine this with my AnimationBlueprint?
At the moment im just changing the animation by calling a custom event from the tree functions. That sets the animation to attacking or something like this and back to normal. I could use this to change the variable for the AnimationBlueprint, but is this the normal way?
I think that i can make all this behaviour in a normal eventgraph or where could a struggle with?
The Tutorial wasnt that clear, because he only did everything without explaining why and how.
It would be nice if someone could explain me the benefit of using the behaviour tree here (:
Use the BehaviorTree to make decisions. The Animation Blueprint is for managing your animations. Tasks on the Behavior Tree can call events on the Animation Blueprint.
The BehaviorTree is much more optimal for making decisions than it will be for you to just do it in an event graph. It gives you all the framework you need upfront and you can just extend it making your new nodes. By using decorator services you can set the timing to check and set variables down, so that it is not every tick. That will speed up your whole operation.
It’s obviously not simple to make a tutorial in it or Epic would have allready provided it. There are some threads in the forums you should look into. Here’s a link to a forum thread that goes into detail.
It’s extra work upfront to setup the Behavior Tree, but it will make adding and changing behaviors easier after it’s setup.
Thanks. (: Ok than i will use the tree.
There is a tutorial but like i said, they guy didnt explain what the things are doing. I needed to go through it 1-2 hours extra to understand it on my own. Maybe if i get behind all of it i will make a tutorial for it.
I saw his all episode and i agree with @eXi… there are nt explaining anything
it is awesome tutorial if we will get from begin to end explaination
That person started middle of somewhere project where he already setup half of part… and what he was explaining… that create big confusion
Here is in my game i followed Introduction to Third Person game which unreal engine official tutorial from there I gave punch, Kick ability on key command
which i hav montage animation available
bt i am not able to figure out how to give the same ability to ai
so he will attack on player
on player hit he will react this is my major problem