Thanks for your suggestion.
The main problem with auto targeting (also the reason why I have not yet really started) is that the search function is not very performance friendly. Constantly checking the map for hives to target would lead to serious stuttering or micro-freezes - depending on refresh rate.
When adding the functionality I have to store all hives to an array when they are created and search it when a missile needs a target.
There are still some problems with this method for which I have not yet found a solution (for example only targeting revealed positions for different forces, refreshing the array and fixing deviations between array and real targets).
The artillery functionality is not script based so I can't copy it's behavior.
Unfortunately the surveillance cams and auto targeting with radar have the same requirements so it wouldn't be faster to implement one first.
I'm sorry for letting you wait for this feature.