# How do I trigger a C++ script from blueprint

**URL:** <https://forums.unrealengine.com/t/how-do-i-trigger-a-c-script-from-blueprint/398107>\
**Category:** UI\
**Tags:** interface, unreal-engine, combine, Widget, Blueprint, question, CPP\
**Created:** [July 31, 2017, 12:24pm UTC](https://forums.unrealengine.com/t/how-do-i-trigger-a-c-script-from-blueprint/398107 "2017-07-31T12:24:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_90f5c413](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_90f5c413](https://forums.unrealengine.com/u/anonymous_user_90f5c413)\
**Post date:** [July 31, 2017, 12:24pm UTC](https://forums.unrealengine.com/t/how-do-i-trigger-a-c-script-from-blueprint/398107/1 "2017-07-31T12:24:56Z")

</div>

I want to have blueprint start a script in C++, I have seen several things on how to make C++ start blueprint but never the other way around. If possible, I would like to start it from a widget blueprint, but could use a level or most others if I need to.

---

<div class="post-metadata">

**Author:** ![DanielOrchard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danielorchard/32/636987_2.png) [@DanielOrchard](https://forums.unrealengine.com/u/DanielOrchard)\
**Post date:** [July 31, 2017, 1:26pm UTC](https://forums.unrealengine.com/t/how-do-i-trigger-a-c-script-from-blueprint/398107/2 "2017-07-31T13:26:01Z")

</div>

You can make a UFUNCTION(BlueprintCallable) which will show up in Unreal, which you can call in blueprint, and it will run your implementation.

For example:

.h

```
UFUNCTION(BlueprintCallable)
void GenericFunction();

```

.cpp

```
void CLASSNAME::GenericFunction() 
{
     // call your own functions or do stuff
}
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_90f5c413](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_90f5c413](https://forums.unrealengine.com/u/anonymous_user_90f5c413)\
**Post date:** [July 31, 2017, 8:21pm UTC](https://forums.unrealengine.com/t/how-do-i-trigger-a-c-script-from-blueprint/398107/3 "2017-07-31T20:21:07Z")

</div>

Thanks a ton, I am a beginner at c++ and unreal and this solves a huge problem for me.
