# Call Blueprint Event from Console

**URL:** <https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 12, 2014, 9:42am UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245 "2014-08-12T09:42:34Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![scrcro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scrcro/32/1008648_2.png) [@scrcro](https://forums.unrealengine.com/u/scrcro)\
**Post date:** [August 12, 2014, 9:42am UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/1 "2014-08-12T09:42:34Z")

</div>

Hi,

Does anyone know of a way to bind blueprint events to console commands, mainly so I can debug a fairly complex blueprint without binding keys for each individual variable and such? Ideally I’d like to avoid using C++ at this point, but if its inevitable, so be it.

For example, I can enter a command into the console:

```auto

dock_load 1, 4

```

And my blueprint will run a certain event with a the arguments I supply?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64c55f0b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64c55f0b](https://forums.unrealengine.com/u/anonymous_user_64c55f0b)\
**Post date:** [August 12, 2014, 3:21pm UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/2 "2014-08-12T15:21:36Z")

</div>

I’m just getting started in Unreal, but I’m looking to do the same thing. With the help of another forum user I’ve tracked down where to look at in the C++ sources, and so right now I’m getting the hang of making blueprint nodes. If you’re interested I can let you know when I have a blueprint node’s sources figured out. Not promising anything but I want to look into making plugins as well, so if I can figure out how to do that I’ll be able to help others avoid having to compile.

---

<div class="post-metadata">

**Author:** ![scrcro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scrcro/32/1008648_2.png) [@scrcro](https://forums.unrealengine.com/u/scrcro)\
**Post date:** [August 12, 2014, 3:23pm UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/3 "2014-08-12T15:23:50Z")

</div>

> [@Veovis Muad'dib;116857](#):
>
> I’m just getting started in Unreal, but I’m looking to do the same thing. With the help of another forum user I’ve tracked down where to look at in the C++ sources, and so right now I’m getting the hang of making blueprint nodes. If you’re interested I can let you know when I have a blueprint node’s sources figured out. Not promising anything but I want to look into making plugins as well, so if I can figure out how to do that I’ll be able to help others avoid having to compile.

Sounds good, drop a line if you manage to figure something out.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64c55f0b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64c55f0b](https://forums.unrealengine.com/u/anonymous_user_64c55f0b)\
**Post date:** [August 18, 2014, 3:54am UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/4 "2014-08-18T03:54:31Z")

</div>

I stumbled upon [this plugin](https://github.com/AndrewScheidecker/BrickGame/tree/master/Plugins/ConsoleAPI) and figured I’d let you know. I haven’t actually looked into it myself yet though.

---

<div class="post-metadata">

**Author:** ![Irascible](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Irascible](https://forums.unrealengine.com/u/Irascible)\
**Post date:** [August 18, 2014, 7:28pm UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/5 "2014-08-18T19:28:13Z")

</div>

If you add an event in the level script, you can actually call it directly in the console with “ce EventName OptionalParamValue” etc.

As an example, if this were in my level script:

[![](https://i.imgur.com/UFLmynG.png) ](https://i.imgur.com/UFLmynG.png)

I could call it on the console with “ce TestConsoleEvent 25” and it would output 25 to the screen.

If you want an event in a blueprint for an actor in the world, you can use a similar setup, except you also have to specify which actor (and it uses “ke” instead of “ce”):  
“ke ActorName EventName ParamValue”

If you don’t know the actor name, you can use “\*” and it will try to call it on \*\*every \*\*actor in the world:  
“ke \* TestConsoleEvent 25”

---

<div class="post-metadata">

**Author:** ![TarlRaney](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tarlraney/32/1016964_2.png) [@TarlRaney](https://forums.unrealengine.com/u/TarlRaney)\
**Post date:** [August 19, 2014, 12:27am UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/6 "2014-08-19T00:27:54Z")

</div>

Awesome. That sounds super useful. Thanks for the info.

---

<div class="post-metadata">

**Author:** ![aombk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aombk/32/614927_2.png) [@aombk](https://forums.unrealengine.com/u/aombk)\
**Post date:** [March 8, 2018, 10:47am UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/7 "2018-03-08T10:47:55Z")

</div>

this example, “ke \* TestConsoleEvent 25”, it doesnt work on a shipping build, right? or am i doing something else wrong?

---

<div class="post-metadata">

**Author:** ![Orkney](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Orkney](https://forums.unrealengine.com/u/Orkney)\
**Post date:** [March 8, 2018, 11:07am UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/8 "2018-03-08T11:07:27Z")

</div>

I think it probably is still working, as in the function is still firing, just print string does not work in shipping build.

---

<div class="post-metadata">

**Author:** ![aombk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aombk/32/614927_2.png) [@aombk](https://forums.unrealengine.com/u/aombk)\
**Post date:** [March 8, 2018, 11:23am UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/9 "2018-03-08T11:23:58Z")

</div>

i used " ke \* " commands a bit to do various things, not print strings, and they dont seem to work. so i am wondering, are ke \* left out from shipping builds? and so i have to find another way for my blueprints to communicate?

---

<div class="post-metadata">

**Author:** ![Kein](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kein](https://forums.unrealengine.com/u/Kein)\
**Post date:** [February 12, 2021, 10:18pm UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/10 "2021-02-12T22:18:09Z")

</div>

> [@Irascible](#):
>
> If you add an event in the level script, you can actually call it directly in the console with “ce EventName OptionalParamValue” etc.
> 
> As an example, if this were in my level script:
> 
> [http://i.imgur.com/UFLmynG.png](http://i.imgur.com/UFLmynG.png)
> 
> I could call it on the console with “ce TestConsoleEvent 25” and it would output 25 to the screen.
> 
> If you want an event in a blueprint for an actor in the world, you can use a similar setup, except you also have to specify which actor (and it uses “ke” instead of “ce”):  
> “ke ActorName EventName ParamValue”
> 
> If you don’t know the actor name, you can use “\*” and it will try to call it on \*\*every \*\*actor in the world:  
> “ke \* TestConsoleEvent 25”

Do you know if there is a way to get list of available top-level callable events in console in UE4.24 in shipped build?

---

<div class="post-metadata">

**Author:** ![Incurian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/incurian/32/716771_2.png) [@Incurian](https://forums.unrealengine.com/u/Incurian)\
**Post date:** [October 5, 2022, 9:00pm UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/11 "2022-10-05T21:00:15Z")

</div>

AFAICT, “ce” works shipped, but “ke” doesn’t. Rather than mess with console commands, you can go directly to the eventual destination, “CallFunctionByNameWithArguments.” This was my first time working with C++ in any capacity, much less in Unreal, but here’s the custom blueprint I came up with. It seems to work (only tested in UE 5.0.3), but I’m sure I’ve done things in the stupidest way possible… so if someone smarter can suggest improvements, please do.

Create these files, and after changing “TEMP22” to your project name, place them in /Source/ProjectName in your project folder. Then open the solution in VS and build your project.

TestBFL.h

> #pragma once
> 
> #include “CoreMinimal.h”  
> #include “Kismet/BlueprintFunctionLibrary.h”  
> #include “TestBFL.generated.h”
> 
> //Change “TEMP22” to your project name
> 
> UCLASS()  
> class TEMP22\_API UTestBFL : public UBlueprintFunctionLibrary  
> {  
> GENERATED\_BODY()  
> UFUNCTION(BlueprintCallable, Category = “Development”, meta = (CallableWithoutWorldContext))  
> static bool DoCallFunctionByName(FString Target, FString Command, FString Arguments);  
> };

TestBFL.cpp

> #include “TestBFL.h”  
> #include \<Runtime/Core/Public/Misc/OutputDeviceNull.h\>  
> bool UTestBFL::DoCallFunctionByName(FString Target, FString Command, FString Arguments)  
> {  
> FString Comb;  
> Comb += Target;  
> Comb += " ";  
> Comb += Command;  
> Comb += " ";  
> Comb += Arguments;  
> const TCHAR\* Cmd = _Comb;  
> FString const ObjectName = FParse::Token(Cmd, 0);  
> FOutputDeviceNull_ Stupid = nullptr;  
> UObject\* ObjectToMatch = FindObject(ANY\_PACKAGE, \*ObjectName);  
> return(ObjectToMatch-\>CallFunctionByNameWithArguments(Cmd, \*Stupid, nullptr, true));  
> }

When you reload the editor, the blueprint should be available as “Do Call Function By Name.”

 ![TBLDemo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/7/d77f4575ac3b02ee3f957ad065211f40cbf10d57.png)

PS, thank you to the dude who made this site: [Custom Blueprint Nodes Part 1: Blueprint Libraries · /home/trashbyte](https://trashbyte.io/blog/2019/10/20/custom-blueprint-nodes-part1.html)

---

<div class="post-metadata">

**Author:** ![UnrealHorrorDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealHorrorDev](https://forums.unrealengine.com/u/UnrealHorrorDev)\
**Post date:** [January 5, 2023, 6:44pm UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/12 "2023-01-05T18:44:24Z")

</div>

If you find yourselff here in 2023. Here is the corrected code UE 4.27 and up

```
FString Comb;
Comb += Target;
Comb += " ";
Comb += Command;
Comb += " ";
Comb += Arguments;

const TCHAR* Cmd = *Comb;
FString const ObjectName = FParse::Token(Cmd, 0);

FOutputDeviceNull IAmStupid;

UObject* ObjectToMatch = FindObject<UObject>(ANY_PACKAGE, *ObjectName);
return(ObjectToMatch->CallFunctionByNameWithArguments(Cmd, IAmStupid, nullptr, true));

```

---

<div class="post-metadata">

**Author:** ![jqfortune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jqfortune/32/675426_2.png) [@jqfortune](https://forums.unrealengine.com/u/jqfortune)\
**Post date:** [April 6, 2023, 2:13am UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/13 "2023-04-06T02:13:12Z")

</div>

hey, folks, there is official documentation about calling your custom event in your blueprint at here: [Custom Events | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Blueprints/UserGuide/Events/Custom/), which I think is a very clear and useful instruction!

---

<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:27pm UTC](https://forums.unrealengine.com/t/call-blueprint-event-from-console/9245/14 "2026-09-28T20:27:03Z")

</div>

Old thread, but it’s still near the top when you search for this, so here’s a quick 2026 summary:

- `ce MyEvent 25` calls a custom event in the Level Blueprint.

- `ke * MyEvent 25` calls it on everything in the current world that has it. `ke BP_Dock_C MyEvent 25` calls it on every instance of that Blueprint (note the ‘\_C’). Arguments are space-separated, in parameter order.

- ke is a dev command, so it isn’t in Shipping builds. That’s what #7–#11 ran into. It also never shows a return value.

If you want autocomplete and to see results, I made Actor Console (disclosure: my plugin, UE 5.6+, dev builds only like ‘ke’). There it’s `@Dock.DockLoad(1, 4)`, with suggestions for the actor, the event and its parameters, and whatever the function returns printed right after. [Actor Console | Fab](https://www.fab.com/listings/f34dbf3f-94b8-426d-a8aa-8901f678cb46)
