I would like to make a similar function for my AI.
I would like to make a
GetRandomReachablePointInCone (Basically, i get a random reacheable location using a direction and an angle) GetRandomReachablePointInDonut (Same as the default but i want a min and max radius) How can I make that? Is there a way to see the code or blueprint or wathever behind GetRandomReachablePointInRadius?
I would think you want something like this: https://docs.unrealengine.com/latest/INT/Engine/AI/EnvironmentQuerySystem/QuickStart/index.html
EQS is a very powerful tool and it's the typical way this type of thing would be done.
Randomization can be done many ways. The easiest would be to use EQS to find all the reachable points within a radius and then put them into an array and use a random int in the range of 0 to Array.Length - 1 to get a random point from the array. There are other ways to do it but that's the first thing that comes to mind.
answered Dec 17 '15 at 01:28 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here