follow actor like homing missile
Hi. I have random actors spawning and falling down from the top and I have a canon at the bottom. When you press the canon once I want it to shoot towards the closest actor and it will be hit with the missile, because it is homing. But if you press the canon fast enough before that first actor dies it will launch the missile still at the 1st actor. I would like it to hit the 2nd furthest actor from the canon. So the question is. How do you make the missile shoot toward the closest actor? And if the 1st actor hasn't been hit with the 1st missile yet how can I make the 2nd missile hit the 2nd furthest actor away and so on.