BotAI attack sequence
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
Thanks in advance
asked Jun 22 '15 at 01:39 PM in Blueprint Scripting
First of all you're using AIController's location while what you need to use is its controlled pawn (use
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 ;)
answered Jun 22 '15 at 01:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here