Hello!
I have a clash of clans game, and I'm trying to make units attack buildings and units.
Only I can't understand how instances work, to detect enemy or nearest building and start attacking as expected.
I'll say what I want in parts for the translation not to disturb:
1 - Create unit with touch is right after she looks for the nearest unit to attack (I think I did it right)
2 - Make the unit attack towards the enemy unit (this is being more complicated for me)
3 - Soon after eliminating enemy unit move to another nearest unit
here is the .c3p of what I could do
https://drive.google.com/file/d/1UeOWLBUTO1VoFG0InekzgFrdFV8gZ8J8/view?usp=sharing