# Parent OnComponentHit to Attached Component

**URL:** <https://forums.unrealengine.com/t/parent-oncomponenthit-to-attached-component/388875>\
**Category:** Blueprint\
**Tags:** oncomponenthit, unreal-engine, CPP, Blueprint, question\
**Created:** [March 24, 2017, 1:38pm UTC](https://forums.unrealengine.com/t/parent-oncomponenthit-to-attached-component/388875 "2017-03-24T13:38:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b086c581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b086c581](https://forums.unrealengine.com/u/anonymous_user_2b086c581)\
**Post date:** [March 24, 2017, 1:38pm UTC](https://forums.unrealengine.com/t/parent-oncomponenthit-to-attached-component/388875/1 "2017-03-24T13:38:18Z")

</div>

Does OnComponentHit also trigger hits for all attached components? Such that if my player has a sword which has a USpellEffectComponent attached and each have different on hit functions, would both be called when the parent receives a hit?

---

<div class="post-metadata">

**Author:** ![pulp\_user](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pulp\_user](https://forums.unrealengine.com/u/pulp_user)\
**Post date:** [March 25, 2017, 10:49pm UTC](https://forums.unrealengine.com/t/parent-oncomponenthit-to-attached-component/388875/2 "2017-03-25T22:49:07Z")

</div>

I just tried it, and no it doesn’t :D. You would have to call each component that wants to react to the hit. An alternative may be a [multicast delegate](https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/Delegates/index.html). Say You have one component registering the hit, and in the on hit function you broadcast the delegate. And every other component can just register a method in that delegate. This way everyone who wants to be called gets called, without you having to care about that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b086c581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b086c581](https://forums.unrealengine.com/u/anonymous_user_2b086c581)\
**Post date:** [March 26, 2017, 10:37am UTC](https://forums.unrealengine.com/t/parent-oncomponenthit-to-attached-component/388875/3 "2017-03-26T10:37:02Z")

</div>

Dang that route never even occurred to me! Thank you. It’s exactly what I need.
