Evenly distribute/split homing projectiles between multiple enemies

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.

1 Like