I thought this would be easy, but no, it's not. Or maybe it is, but I just don't get it. Check the example, it tells everything.
Printable View
I thought this would be easy, but no, it's not. Or maybe it is, but I just don't get it. Check the example, it tells everything.
Ok, all you have to do is modify the conditions that say 'enemy is overlapping range' and change them to 'range is overlapping enemy'.
Why does that make the difference? Because by doing that, you are narrowing down the selection to the one that you want. By having the enemy one specified first, you aren't narrowing down the list, and so they are shooting at the dominant one, not the one you are checking the collision against.
Makes sense. Thanks, that was a very simple answer. :)