enemy selecion

What would be the best way to do enemy selction ? I know how to be able to click on 3d objects and have something happen but I’m not sure how to have an enemy selected and be able to have all my attack applied to that target, this also has to work with multiple enemies being spawned. Any suggestions ?

you might want to try downloading this project as it incleds a unit selection script:


It is quite complicated and I’m not going to write you a script because 1. I’d probably do it wrong and 2. I can’t be bothered but as i say that project could be quite useful for you

hope its useful,