I see the farseer code, it uses the filter functor to isolate an enemy unit meeting the requirements for the ability and use it if GetClosestSquad() finds the squad meeting the functor. Now, following this example, I just want the farseer to attack the found enemy (I know that in this example the target is friendly but let's suppose its not if I replace GetClosestSquad() with FindClosestEnemy()) instead of performing an ability on him. But I cannot find the DoAttack() function which I would put instead of DoSpecialAbilitySquad() function there. I know there are functions DoMove(), DoAttackMove(), DoStop(), DoRepair(), DoSpecialAbilitySquad(), DoReinforce(), etc., etc., all of which do what it says in the function name. Yet there is no function DoAttack(), or that's what it would be called.
I misunderstood your previous post a bit. Of course I won't be searching for specific unit names. That was just the test sample: "tau_ethereal_squad". I've even commented it for myself. I would later replace it with a functor like the one in farseer tactic.