# Porting from UE4 to UE5 breaks "On Hit"

**URL:** <https://forums.unrealengine.com/t/porting-from-ue4-to-ue5-breaks-on-hit/609856>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, UE4, Blueprint, question\
**Created:** [July 21, 2022, 2:25am UTC](https://forums.unrealengine.com/t/porting-from-ue4-to-ue5-breaks-on-hit/609856 "2022-07-21T02:25:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamProjectRebel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AdamProjectRebel](https://forums.unrealengine.com/u/AdamProjectRebel)\
**Post date:** [July 21, 2022, 2:25am UTC](https://forums.unrealengine.com/t/porting-from-ue4-to-ue5-breaks-on-hit/609856/1 "2022-07-21T02:25:51Z")

</div>

Ran into a weird bug when porting my game from ue4 to ue5. The On Hit event will only ever return my base component in “My Component”.

I added a video to demonstrate as this worked in ue4 just fine. I took a few attempts in the video to get just the wing to hit. You can see in the print string readout that it only ever recognizes the rocket despite the wing being the component hit.

[![]( " - YouTube") ](https://www.youtube.com/watch?v=DS8iOYKd3sE)
