Command archers to kite the enemy - cloudrip siege help

Anyone know how to command archers to kite the enemy (shoot and move back)?

function shoot () {
  // code here
function moveBack () {
  // code here

nah, jkjk, anywayyy

wdym? where should it move? toward the hero? just away from the enemy? weave through walls and obstacles while moving back?

towards the hero‎ keeping a distance of 24 from the enemy

if only it was that simple tho

K, use my code from… wait, lemme find it because I’ve posted so many useful pieces of code it’s ridiculous aaaa