3rd person fighting

you could have collision spheres attached to player and enemy. If attack button is pressed, check if the spheres are colliding, if they are colliding, then enemy was hit. You could use an additional ‘laser’ (collision ray) to make sure that the player is also facing the enemy.

this is good for leaning panda collisions:
[Panda3d Collisions made simple)