I mod the Pil Mahalmit's actor, i put a ptolomeaic tower and a javelinist inside and i have a question: how i can put an attack based on distance: the means the if the unit detects enemies on shoot distance of javelinists the javelinist gonna shoot their javelins, and if the enemies are nearing into the elephants the melee attack begins