So I made an enemy and animated it, and it worked fine. The enemy is supposed to follow the player when in LOS, and when distance<30 it attacks the player.
But when I put 2 enemies, it doesnt work, because all enemies attack at once, for example, even if they are not in range. I used for each enemy, since the second enemy was not even animating before using it.
I tried Pick with comparing, then I compare the distance and pick the enemy that is close to the player, but its kinda bad. Is there a way to use object related scripts or sheets, like Unity? Maybe some plugin?