Is there a way to do a collision by a certain collision mask. I would like my player character to hurt the enemy when in collision with for example the enemies head but get hurt themselves if collision is anywhere other than the enemy head.
At the moment I am using a separate object connected to the enemy as the head hitbox. This works fine but just interested if it can be achieved by choosing which collision mask is being collision with.
This is my event for enemy collision
