I am learning how to prototype a game with Blueprints. I have 3 different enemy AI blueprints implemented, lets call them Red, Yellow, and Blue. Right now they have patrolling, wandering, pawn sensing, chasing, and attacking implemented. They all chase the player with "Move To" in their "Behaviour Tree", but they can be herded easily just by running back and forth. I want them to do a co-ordinated attack.
I want Red to chase the player all of the time.
I want Yellow to have a target destination based on the direction the player is moving in and a little ahead of the player.
I want Blue to have a target destination based on the direction the player is moving in and be a little behind the player.
So my questions are: What is the best way to figure out what direction the player has been moving in and set this as a target destination? Should the target destinations be an actor? Should it be a vector variable? How often should I calculate it? Where should I store it? Any input will be greatly appreciated