UE5 how to make friendly AIs move to X location and takes spots around spot without picking same spot as another AI

this would be the way to do it but you might want to look at videos on how to implement queries in C++ or blueprints as when a query is performed it can generate an array im not sure off the top of my head and it is 2am here so i do appologize if this isn’t as helpful as you like. but you can easily do it in blueprints heres a screenshot of a teleport blueprint that would fire once a query was completed, it would be able to pass the query results as an array but for simplicity we chose the first item in that list. so instead of taking the first you could use it to take the first how many ais you have


image
if you do the udemy course i did it may help you in what you are trying to achieve and give you a better understanding of AI and EQS
https://www.udemy.com/course/perceptive-ai-in-unreal-engine
take a look and see if this will help, otherwise i would look at creating a custom event to fire when a query has finished and then loop through that in your commander! hope this helps and really sorry if it doesn’t