First you need to get all enemy actors, and sort them by distance.
Old topic about it (i recommend C++ code):
when you have that sorted by distance array. Shoot those projectiles in order.
When there are left, go for second loop.
First you need to get all enemy actors, and sort them by distance.
Old topic about it (i recommend C++ code):
when you have that sorted by distance array. Shoot those projectiles in order.
When there are left, go for second loop.