Or... you know... you don't set all the archers to fire a single unit. But I think this is code and we are all back to "we need people".
Archers fire at whatever is the closest line unless said line is in melee, then they fire at anything behind the melee. It isn't a setting.