I was hoping I could find a solution to a problem I am having with trying to create a intelligent AI. I am not sure if the RTS behavior is the way to go here.
Basically, I am creating a top down game set in space, and I am up to creating a AI that will expand its own empire. I have everything done here, the AI will go to the planet, colonize it and then set it to their team. What I am having trouble with is how to tell the AI how to go to the closest planet to their homeworld, rather than going to a random planet in the rather large system, ending up in jumbled masses.
Is there a way to tell the RTS behavior to go to the closest planet? What events would I need to use to do this?
Thanks in advance