BotAI attack sequence

First of all you’re using AIController’s location while what you need to use is its controlled pawn (use Perform Condition Check AI, you’ll get both the controller and pawn with it). This is probably why you’re BT doesn’t work.

Second, your current setup doesn’t even require that conditional decorator - the Move node won’t finish until AI is at the goal. You just need to make it move to the Goal Actor instead of Goal Location - just add an “actor” key to your blackboard, set it to store player pawn, and make the task go to that blackboard key.

Last but not least, the ideal setup would be like so:

I’ll let you figure out the details :wink:

Cheers,

–mieszko

Hello,

I’m trying to setup a simple AI bot who is moving towards the player, stop at him and attack.
This sounds so simple, but turns out to be not as easy as I thought.

I thought I’m going to make a decorator, which should check if the bot is at the player location, but this does not work.
Is this a good approach?
If yes, please let me know how to fix my blueprint or please point me in a correct direction

Here is my setup:
Behaviour Tree

Decorator

Thanks in advance

works like a charm when using pawn :wink:
thanks for the hin. I will recheck my tree also