Hello everyone, I have a problem with choosing a target.
The hero has to choose the closest target himself, and then go to it, destroy it and choose the next closest target.
Still, the hero chooses targets in the order I copied them into the game, not by distance