# HitResult check if i hit head bone

**URL:** <https://forums.unrealengine.com/t/hitresult-check-if-i-hit-head-bone/465661>\
**Category:** Character & Animation\
**Tags:** hit-result, unreal-engine, Ray-Tracing, question\
**Created:** [May 23, 2020, 11:13am UTC](https://forums.unrealengine.com/t/hitresult-check-if-i-hit-head-bone/465661 "2020-05-23T11:13:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BEnSon1101](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BEnSon1101](https://forums.unrealengine.com/u/BEnSon1101)\
**Post date:** [May 23, 2020, 11:13am UTC](https://forums.unrealengine.com/t/hitresult-check-if-i-hit-head-bone/465661/1 "2020-05-23T11:13:27Z")

</div>

i do a **LineTraceSingleByChannel** and

```
 if (HitResult.BoneName == How to i reference head bone)
 {
 
 }
```

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [May 23, 2020, 12:35pm UTC](https://forums.unrealengine.com/t/hitresult-check-if-i-hit-head-bone/465661/2 "2020-05-23T12:35:57Z")

</div>

By name???

```
    if (OutHit.BoneName == "head")
    {
        UE_LOG(LogTemp, Warning, TEXT("head bone HITTED"));
    }
    else 
   {
        UE_LOG(LogTemp, Error, TEXT("NO head bone HITTED"));
    }
```

---

<div class="post-metadata">

**Author:** ![BEnSon1101](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BEnSon1101](https://forums.unrealengine.com/u/BEnSon1101)\
**Post date:** [May 24, 2020, 12:15am UTC](https://forums.unrealengine.com/t/hitresult-check-if-i-hit-head-bone/465661/3 "2020-05-24T00:15:23Z")

</div>

thanks helped heaps
