How could I make a line trace weapon do more damage with headshots?

Hey guys! I’m making an fps game and I was wondering if there would be a way to make a head shot do more damage to another actor, in the case, an AI character. I am using a very simple line trace weapon and I have the damage system set up, but how can allow my blueprints to know when I have hit the character’s head? Thanks so much!

It’s pretty simple. You can create a branch using the bone name from your line trace hit result. If bone name = “head” then X else Y.

Okay so I have tried doing this straight from my break hit result. Ive tried these two methods:

  • Getting the hit bone and seeing if it equals head
  • Creating a sphere over the head and seeing if I hit that actor

Neither of these two methods are returning as a “Headshot”. I have attached a screenshot of my methods below.

Nevermind! It works perfectly! I had to scale the skeletal mesh up so his head reached outside of his capsule component. Because of the capsule component, the line trace was not actually hitting the head, but scaling him up made his head accessible! Thanks a lot!

A cleaner solution would be to change the collision visibility on the capsule so it doesnt block line traces and the character’s head isn’t poking out - might save you some headaches later.

Glad you got it working.

I had to do this because getting rid of the collision would ruin the ragdoll system that I have set up, but yes! Thanks again for the help! I really appreciate it! XD