Basically, think of it as a RTS game.
You have a group of units selected, RMB to attack on a single enemy.
Currently, I can get enemy targeting to work.
However, this targeting automatically gets applied to all instances of my units, instead of just the units that are in selected array having the targeting applied.
Check with small number of units weather your selection adequately fills the selected units array and more importantly weather its correctly cleared afterwards.
So you are sure that the Selected Units Array has the correct actors in it? Then what do you actually mean by “targeting is applied”? Which is the node that applies targeting?
P.S.
I would probably store the selected units in the controller instead of taking them from the HUD.
However, without being first selected in step 1, Unit B will now also target this enemy as it is the same child actor. All copes of the same child actor will have the same enemy set as target too.