How to make linetrace ignore capsule of the enemy AI

So i want to be able to make headshots deal more damage but when i try to get bone name it just dont want to work because capsule goes into the way i tryed putting capsule to ignore camera and visiblity but than line trace just go trough whole enemy and doesnt hit the player mesh even tho i put collision of the mesh to block camera and visibility.

  • create a new Ignored channel:

  • ensure the mesh blocks it:

  • when you trace, trace on that channel:


More about collision:


Technically, you do not need to create additional channels, you can play with the existing ones once you wrap your head around how collision filtering works. Example:

It works only sometimes and never hits the head bone

Ok never mind it works now

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.