I'm having problems when I wnat my enemies to hurt only one enemy at time . They already choose only one clone of a object type to attack, but they hurt one clone of each object type of the family.
For example: When a "bad soldier" hits a "good soldiers" group it only hurt one of the soldier in the group, but at same time hurts a "good archer" that isn't in it's attack range just because the good archer make part of the same family that the good soldier.
My code is:
When "bad soldier" is overlapping "Good" family
>System pick "Good" instance 0.
>System pick "GoodSoldier" instance 0.
>System pick "GoodArcher" instance 0.
So how can I make the "bad soldier" hurt only the object type "good soldier" or "good archer" (the closest one) per time?