Custom GetRandomReachablePointInRadius

Hi,

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.

Oh Looks very interesting, I’m gonna check on that thx :slight_smile:

Converted comment to answer, I’m pretty sure that’s what you need. We did something similar (similar concept at least) and EQS worked very well for us