If i put ENTITY*target1; outside the action then it will be a global entity and that means all my allies will shoot at the same target. My idea is to make every ally to have its own target1 entity and shoot at it.

Other ideas?