So what I want is relatively simple:
When bullets collide with enemies, damage the enemy
When bullets collide with enemy head, damage the enemy more
The "heads" are invisible hitboxes in the same container as the enemies. I have it working for one type of enemy and type of bullet, but I have many types of bullet and enemies so I need to work with families. I've tried this:
But this won't pick the enemy in the container with the head that is collided with, so all enemies are damaged.
How do I make it pick the right enemy.
Edit: I'm putting the word "headshot" here so it might help people find this thread in the future