# How to create a blueprint implementable event with a hitresult put in c++

**URL:** <https://forums.unrealengine.com/t/how-to-create-a-blueprint-implementable-event-with-a-hitresult-put-in-c/561433>\
**Category:** C++\
**Tags:** unreal-engine, UE4, CPP\
**Created:** [May 19, 2022, 9:17pm UTC](https://forums.unrealengine.com/t/how-to-create-a-blueprint-implementable-event-with-a-hitresult-put-in-c/561433 "2022-05-19T21:17:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyguy717](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tyguy717](https://forums.unrealengine.com/u/Tyguy717)\
**Post date:** [May 19, 2022, 9:17pm UTC](https://forums.unrealengine.com/t/how-to-create-a-blueprint-implementable-event-with-a-hitresult-put-in-c/561433/1 "2022-05-19T21:17:55Z")

</div>

I’m super new to c++ in ue4, so sorry for the simplicity, but how would I create a blueprint implementable event in c++ that has a hitresult output. Like the photo attached

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/6/81662082f784cf7871d3511c3a75f1a9ec3501d3.png)

---

<div class="post-metadata">

**Author:** ![KaidoomDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kaidoomdev/32/977996_2.png) [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Post date:** [May 19, 2022, 9:25pm UTC](https://forums.unrealengine.com/t/how-to-create-a-blueprint-implementable-event-with-a-hitresult-put-in-c/561433/2 "2022-05-19T21:25:33Z")

</div>

In your header file you can add something like this  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/f/99f6a47249fbf9ff75f1447596b5477f9c5c01c7.png)

You don’t need to create an implementation for it in C++ you can just call it, this is meant to be used in blueprint the same way in your image.

---

<div class="post-metadata">

**Author:** ![Tyguy717](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tyguy717](https://forums.unrealengine.com/u/Tyguy717)\
**Post date:** [May 19, 2022, 9:37pm UTC](https://forums.unrealengine.com/t/how-to-create-a-blueprint-implementable-event-with-a-hitresult-put-in-c/561433/3 "2022-05-19T21:37:31Z")

</div>

Thank you so much, I realized the issue I was having was that I was declaring the event as FHitResult, instead of void.

---

<div class="post-metadata">

**Author:** ![CHILONGQUA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CHILONGQUA](https://forums.unrealengine.com/u/CHILONGQUA)\
**Post date:** [May 20, 2022, 3:38am UTC](https://forums.unrealengine.com/t/how-to-create-a-blueprint-implementable-event-with-a-hitresult-put-in-c/561433/4 "2022-05-20T03:38:48Z")

</div>

Thanks, that helped me as well 🙂
