# Calling c++ event from blueprint?

**URL:** <https://forums.unrealengine.com/t/calling-c-event-from-blueprint/318129>\
**Category:** Character & Animation\
**Tags:** unreal-engine, CPP, Blueprint, question\
**Created:** [May 10, 2015, 10:06pm UTC](https://forums.unrealengine.com/t/calling-c-event-from-blueprint/318129 "2015-05-10T22:06:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thundercleez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thundercleez](https://forums.unrealengine.com/u/Thundercleez)\
**Post date:** [May 10, 2015, 10:06pm UTC](https://forums.unrealengine.com/t/calling-c-event-from-blueprint/318129/1 "2015-05-10T22:06:49Z")

</div>

I am trying to call a c++ event from a blueprint, but it doesn’t seem like it’s getting called. I’ve defined my event like

```
UFUNCTION(BlueprintNativeEvent, Category = "Animation")
void EnterDashSlash();

void UAnimationResponder::EnterDashSlash_Implementation()
{
	GEngine->AddOnScreenDebugMessage(-1, 1.0f, FColor::Yellow, "EnterDashSlash_Implementation");
}

```

Then in my animation blue print state graph, I click on a state and in the Entered State Event text box, I put EnterDashSlash. But when the animation plays, my text isn’t logged. Is there something else I need to do to link this event to when an animation starts?

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [May 10, 2015, 10:25pm UTC](https://forums.unrealengine.com/t/calling-c-event-from-blueprint/318129/2 "2015-05-10T22:25:58Z")

</div>

Try “BlueprintCallable” instead of BlueprintNativeEvent.

Although the function still run. I haven’t used NativeEvent in a while. Don’t you need to call the super function in BP?

---

<div class="post-metadata">

**Author:** ![Thundercleez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thundercleez](https://forums.unrealengine.com/u/Thundercleez)\
**Post date:** [May 10, 2015, 11:17pm UTC](https://forums.unrealengine.com/t/calling-c-event-from-blueprint/318129/3 "2015-05-10T23:17:43Z")

</div>

BlueprintCallable causes a compile error because the declaration for EnterDashSlash\_Implementation doesn’t get created unless BlueprintNativeEvent is used.

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [May 10, 2015, 11:43pm UTC](https://forums.unrealengine.com/t/calling-c-event-from-blueprint/318129/4 "2015-05-10T23:43:37Z")

</div>

You need to declare it the normal way. Without the \_Implementation.

Just write down the function in c++ like you would normaly do + the UFUNCTION makro with “BlueprintCallable”. You can then call it in the BP version (BP Child Class) of that Class.
