I'd like to have an AI Pawn flank a player Pawn.
Let's say that flanking in this case is defined by taking a path, which is a path from the current AI Pawn location to the player Pawn location and stays away from the shortest distance path.
Is there a reasonable way to do this with:
Are there any other terrain analysis tools for Unreal Engine to help the AI reason about the tactical environment? Influence Maps? Heat Maps? etc?
There is actually a pretty elegant mathematical way to accomplish this (best implemented using EQS in my opinion).
Using EQS you will query a path destination that is X units away from your target, and X*2 units away from your character. The result of this operation (which can be tuned for your specific needs) is that your AI will always be approaching your Player, but will always flank to the left or right as they need to satisfy the X*2 requirement of the EQS Query.
For an added layer of hotness, dig into the Dot Product filter of EQS, which will allow you to avoid locations directly in front of your character.
answered Feb 28 '17 at 04:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here