# Call Blueprint functions from C++

**URL:** <https://forums.unrealengine.com/t/call-blueprint-functions-from-c/296119>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 14, 2014, 6:20pm UTC](https://forums.unrealengine.com/t/call-blueprint-functions-from-c/296119 "2014-10-14T18:20:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ScottSpadea](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scottspadea/32/1194682_2.png) [@ScottSpadea](https://forums.unrealengine.com/u/ScottSpadea)\
**Post date:** [October 15, 2014, 4:53am UTC](https://forums.unrealengine.com/t/call-blueprint-functions-from-c/296119/3 "2014-10-15T04:53:23Z")

</div>

//if you want to define a function in CPP that can be redefined or called in blueprint, do this:

//for a function named XXX inheriting from a class named YYY, you would write:

//inside the YYY.h class:

```
 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "ZZZ")
 void XXX();

```

//at the end of the YYY.CPP file:

```
 void YYY::XXX_Implementation()
 {
   //add code here
   AAA.doStuff();
 } 

```

//the “\_Implementation” suffix for the function name is only needed if you use “BlueprintNativeEvent”, and if you want to call that function from CPP, you just call " XXX(); " and not " XXX\_Implementation(); "

---

_[View the full topic](https://forums.unrealengine.com/t/call-blueprint-functions-from-c/296119)._
