Why would you think there’d be a command at all, other than “when they are in range, kill them”? Why would you wait till people are closer when you start shooting them when you can shoot them when they are further away just fine. It’s not like someone would say “oh fuck these dudes in the front got taken out by archers, time to take out my shield”. They’d just walk with their shield out already. They’d use siege engines to hide from the arrows. They’d have barricades to hide behind. You wouldn’t simply go for the Futurama killbot limit, why would you give your opponent more time to walk towards you
Learn what strawmanning is, read up on how longbow archery worked. I’m done here.