# Call Custom Event By Name

**URL:** <https://forums.unrealengine.com/t/call-custom-event-by-name/401994>\
**Category:** Blueprint\
**Tags:** custom-event, actor-blueprint, unreal-engine, construction-script, Blueprint, question, calls\
**Created:** [August 15, 2017, 4:31pm UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994 "2017-08-15T16:31:09Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![dogu189](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dogu189](https://forums.unrealengine.com/u/dogu189)\
**Post date:** [August 15, 2017, 4:31pm UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/1 "2017-08-15T16:31:09Z")

</div>

Hey all,

So I am trying to find a way call an event from another BP by a specific name in a specific blueprint I mean like this:

![193642-default.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/5/f1519265799b513af932d8a732223b4a9029575c.png)

which will then trigger the event in the ‘PawnBP or whatever the developer has decided to call’

![193643-customevent.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/e/59e9e44bf34454a9dea96831de5a9237fcd1a0a2.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3221808d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3221808d](https://forums.unrealengine.com/u/anonymous_user_3221808d)\
**Post date:** [August 16, 2017, 3:17am UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/2 "2017-08-16T03:17:29Z")

</div>

This is tricky business. There is a way to do this with console commands but it’s kind of crazy practice but instead of a half-hearted speech about “best practices” I will just lay it out.

You can call any custom event using an odd console command called “ke”

ke actorNameHere eventNameHere Param Param Param

You can call it on all actors it exists on by doing:

ke \* eventNameHere

So just build a string with the target name and the event name and fill that into an ExecuteConsoleCommand node.

As a note, “ce” will call an event in the level blueprint and will even autopopulate it in the in-game console.

---

<div class="post-metadata">

**Author:** ![dogu189](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dogu189](https://forums.unrealengine.com/u/dogu189)\
**Post date:** [August 19, 2017, 2:44pm UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/3 "2017-08-19T14:44:25Z")

</div>

This works pretty good if I use the ''ke \* Eventname"  
however it doesnt work for “ke actorNameHere eventNameHere” the event doesnt execute  
Any idea why?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3221808d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3221808d](https://forums.unrealengine.com/u/anonymous_user_3221808d)\
**Post date:** [August 19, 2017, 8:42pm UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/4 "2017-08-19T20:42:27Z")

</div>

hmm, not really certain, been a long time since i’ve used it specfically, be sure you have the real actor name and that you have spaces before and after it (sometimes it’s easy forget if you are appending strings together). I will try it out a bit later when i am home.

---

<div class="post-metadata">

**Author:** ![dogu189](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dogu189](https://forums.unrealengine.com/u/dogu189)\
**Post date:** [August 19, 2017, 9:56pm UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/5 "2017-08-19T21:56:41Z")

</div>

This is the setup Im using

 ![210419-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/9/e799257fdf2b5137779d6854d7118ea26b0b695d.png)

I tried replacing `Get Display name` with `Get Object Name` and `ToString(object)`

I got the same results

I also added `Print String` to see the command, it said `ke PortalBP OpenPortal`

---

<div class="post-metadata">

**Author:** ![dogu189](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dogu189](https://forums.unrealengine.com/u/dogu189)\
**Post date:** [August 20, 2017, 8:20pm UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/6 "2017-08-20T20:20:53Z")

</div>

Have you found out why?

---

<div class="post-metadata">

**Author:** ![kodusu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kodusu](https://forums.unrealengine.com/u/kodusu)\
**Post date:** [January 9, 2018, 9:00am UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/7 "2018-01-09T09:00:37Z")

</div>

ke actorNameHere eventName is working in Standalone Mode not in PIE. In PIE ke \* eventName is Working 🙂

---

<div class="post-metadata">

**Author:** ![GTNardy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gtnardy/32/906836_2.png) [@GTNardy](https://forums.unrealengine.com/u/GTNardy)\
**Post date:** [February 10, 2022, 9:47am UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/8 "2022-02-10T09:47:34Z")

</div>

Hello, there is a UObject::CallFunctionByNameWithArguments(), have a try.

---

<div class="post-metadata">

**Author:** ![MingleGSJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MingleGSJ](https://forums.unrealengine.com/u/MingleGSJ)\
**Post date:** [February 16, 2023, 6:24am UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/9 "2023-02-16T06:24:53Z")

</div>

how can i call event with params

---

<div class="post-metadata">

**Author:** ![Chatouille](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chatouille/32/1194622_2.png) [@Chatouille](https://forums.unrealengine.com/u/Chatouille)\
**Post date:** [February 16, 2023, 8:55am UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/10 "2023-02-16T08:55:57Z")

</div>

> [@MingleGSJ](#):
>
> how can i call event with params

What kind of params?

---

<div class="post-metadata">

**Author:** ![Gimli\_Gloin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gimli\_Gloin](https://forums.unrealengine.com/u/Gimli_Gloin)\
**Post date:** [April 16, 2023, 2:12am UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/11 "2023-04-16T02:12:09Z")

</div>

this is an incorrect setup.

correct way: Ke [Space] \* [Space] {Event-Name}

this will run properly on both the player and owned components

 ![sfaf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/a/fea232bd692782e367551ab0aa9c0697ca9add54.png)

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [April 16, 2023, 8:07am UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/12 "2023-04-16T08:07:14Z")

</div>

i don’t think you will create hundrets of custom events with fancy names…

so… for a shooter example,… your AddAmmo…

Use a Blueprint Interface…  
With an interface, you can call the interface function sended to an Actor. If the Actor has the interface and the event imolemented, the event gets called… if not… nothing happens…  
And you can implement the interface and event in every actor of your project you like… You can even just implement the interface… but leave some events unimplemented to hide function calls from them…

you just call it from another actor via:

```auto
AActor->Interface->CallEvent(Message)

```

See: [Blueprint Interfaces Tutorial Example](https://youtu.be/96vJiKrAa9k)

---

<div class="post-metadata">

**Author:** ![DuFFysLibrary](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duffyslibrary/32/978417_2.png) [@DuFFysLibrary](https://forums.unrealengine.com/u/DuFFysLibrary)\
**Post date:** [September 18, 2024, 5:25am UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/13 "2024-09-18T05:25:21Z")

</div>

Solution → [Call an Event as Variable posted by DuFFy | blueprintUE | PasteBin For Unreal Engine](https://blueprintue.com/blueprint/5u3c12i4/)

---

<div class="post-metadata">

**Author:** ![Up\_And\_Atom\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Up\_And\_Atom\_1](https://forums.unrealengine.com/u/Up_And_Atom_1)\
**Post date:** [November 20, 2024, 3:32am UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/14 "2024-11-20T03:32:49Z")

</div>

The original question is about calling a blueprint custom event from another blueprint.

One way: In blueprint, you need a reference to the other blueprint. Once you have the reference, you can directly call the blueprint custom event on it. Get a reference to the other blueprint by doing one of:

- Get All Actors of Class
- Get All Actors by Tag
- Use Interfaces
- Create a variable on the blueprint of the type of the other blueprint that you’re trying to call a function on, hit the instance editable checkbox, place both blueprints in the map, plug a reference to the other blueprint into the exposed variable on the placed blueprint actor

Calling the blueprint custom event as a console command also works.

- Call on client: ke \* params
- Call on server: cheat ke \* params  
…both of those search all blueprints which isn’t super performant.  
Mentioned above you can directly reference the blueprint, but the gotcha not listed above is you need to put \_C after the blueprint name, so it would look like:
- ke actorNameHere\_C eventNameHere params

---

<div class="post-metadata">

**Author:** ![Up\_And\_Atom\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Up\_And\_Atom\_1](https://forums.unrealengine.com/u/Up_And_Atom_1)\
**Post date:** [November 20, 2024, 3:34am UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/15 "2024-11-20T03:34:31Z")

</div>

Just put the param value at the end. For example, if the Custom Event was “AddAmmo” and it took a float, you’d use “ke \* AddAmmo 500” to add 500 ammo.

---

<div class="post-metadata">

**Author:** ![Up\_And\_Atom\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Up\_And\_Atom\_1](https://forums.unrealengine.com/u/Up_And_Atom_1)\
**Post date:** [November 20, 2024, 3:35am UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/16 "2024-11-20T03:35:37Z")

</div>

Try adding \_C after the “actorNameHere” when running in PIE. For whatever reason, it needs that.  
ex: ke actorNameHere\_C eventNameHere

---

<div class="post-metadata">

**Author:** ![JBCambier](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JBCambier](https://forums.unrealengine.com/u/JBCambier)\
**Post date:** [March 27, 2026, 8:51pm UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/17 "2026-03-27T20:51:29Z")

</div>

I just ffound this old topic @dogu189 @Up_And_Atom_1

For anybody stumbling on this thread:

Some clarification and supplement of info is needed.

This is not just a mysterious \_C that need to be added to the actor name.

And if you do so, this WILL NOT work for all cases.

Here is some additional info:

The name requested by the command IS NOT the actor name as seen in the outliner (display name) but rather the Object name.

Here is an example: Display name VS Object name:

 ![IDNAME](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/9/a393c421260505a4675e8993f5c7da163afa7b0d.png)

You can see the the actual “Object name” if you toggle the ID name column in the outliner.

Should you have to call those inside a BP here is what it could look like:

 ![IDNAME2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/1/dd16399b90b238d39dc1b4235c0b1d813e989ebf.png)

As you can see in this example, adding “\_C” will only solve an edge case of you dropping the actor in the level for the first time and not renaming it.

In the case you dropped let s say a static mesh from the CB into your level, delete and bringing it back in, it will increment the ID name.

So my advice is, if you need to hard code that name in a BP, look at the IDname in the outliner,  
If that name is a variable, the use the “GetObjectName” function.

Have a nice day!

---

<div class="post-metadata">

**Author:** ![Tomasz\_Klin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tomasz\_Klin](https://forums.unrealengine.com/u/Tomasz_Klin)\
**Post date:** [September 28, 2026, 8:37pm UTC](https://forums.unrealengine.com/t/call-custom-event-by-name/401994/18 "2026-09-28T20:37:24Z")

</div>

Adding to what JBCambier said: ke doesn’t check which world a name belongs to. `ke PortalBP_C OpenPortal` works in PIE because `PortalBP_C` is the Blueprint class, so it fires on every PortalBP in the game you’re playing. With an actor name it grabs the first object called that, and in PIE the editor’s copy of the level has an actor with the same name, so the event can land there instead. That’s why it worked in Standalone but not in PIE.

If you’d rather call it by the Outliner name, I made a plugin where `@Portal.OpenPortal()` does exactly that and prints the return value [Actor Console | Fab](https://www.fab.com/listings/f34dbf3f-94b8-426d-a8aa-8901f678cb46) , it’s mine, UE 5.6+).
