# Event Dispatcher not working

**URL:** <https://forums.unrealengine.com/t/event-dispatcher-not-working/652094>\
**Category:** Blueprint\
**Tags:** Event-Handler, unreal-engine, UE5-0, Blueprint, question\
**Created:** [September 19, 2022, 9:25pm UTC](https://forums.unrealengine.com/t/event-dispatcher-not-working/652094 "2022-09-19T21:25:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackreaven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blackreaven](https://forums.unrealengine.com/u/blackreaven)\
**Post date:** [September 19, 2022, 9:25pm UTC](https://forums.unrealengine.com/t/event-dispatcher-not-working/652094/1 "2022-09-19T21:25:18Z")

</div>

Hey  
I am trying to use a Event Dispatcher (“Object Level Updated”). The odd thing is, when I call the node with begin play the event gets dispatched and everything works. However when I call the Debug Event I get the “Debugging” text printed on the screen, but the Event does not get called?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/b/3fb05642a1c3fad83786f23d201a3cec1d5930b8.png)

Does anyone have a idea why the event dispatcher behaves this way? Does anyone have a fix? Or is the best bet to just nuke the class and do it again?

---

<div class="post-metadata">

**Author:** ![CtnDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ctndev/32/1133321_2.png) [@CtnDev](https://forums.unrealengine.com/u/CtnDev)\
**Post date:** [September 19, 2022, 9:30pm UTC](https://forums.unrealengine.com/t/event-dispatcher-not-working/652094/2 "2022-09-19T21:30:02Z")

</div>

I guess you didnt understand dispatchers. Whats the blueprint of Level Updated function ?

---

<div class="post-metadata">

**Author:** ![Nawrot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nawrot/32/618260_2.png) [@Nawrot](https://forums.unrealengine.com/u/Nawrot)\
**Post date:** [September 20, 2022, 5:30am UTC](https://forums.unrealengine.com/t/event-dispatcher-not-working/652094/3 "2022-09-20T05:30:29Z")

</div>

SAdly this lost some pictures, but maybe you can dig enough info from it to undestand dispatchers:

> [@Event Dispatchers explained - Finally!](https://forums.unrealengine.com/t/event-dispatchers-explained-finally/55570/1):
>
> Ever since I started working on Unreal Engine 4, I have come across a few roadblocks from time to time which have no solutions on the internet or the official documentation. ‘Event dispatchers’ was one of them and the official documentation regarding the topic is really vague to say the least. So, after a lot of experimentation with Event Dispatchers, I am writing this post where I will try to explain as clearly as I can about Event Dispatchers and why it should be used. So lets begin! [Also, n…

---

<div class="post-metadata">

**Author:** ![blackreaven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blackreaven](https://forums.unrealengine.com/u/blackreaven)\
**Post date:** [September 20, 2022, 7:12am UTC](https://forums.unrealengine.com/t/event-dispatcher-not-working/652094/4 "2022-09-20T07:12:34Z")

</div>

The Setup in the screenshot above is just for debugging. The Event Dispatcher is called by a function wich is called through the Remote Controll Api. The Object Level Updated is bound to the onObbjectLevelUpdate Event in another Actor-B

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/c/a5c2ba118ba0b6d174d3793cde2004cbd95483bb.png)

---

<div class="post-metadata">

**Author:** ![blackreaven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blackreaven](https://forums.unrealengine.com/u/blackreaven)\
**Post date:** [September 20, 2022, 7:18am UTC](https://forums.unrealengine.com/t/event-dispatcher-not-working/652094/5 "2022-09-20T07:18:29Z")

</div>

Pls correct me if I am wrong. But I think I do understand event dispatchers, but I am not good at explaining my problems 😅.

In my Project I have an Acotor ADManager wich controlls a large amount of Actor-B in the Level. Thats the reason why I choose Event Dispatchers. In the Actor-B the dispatched event is bound to an event(see screenshot above), that needs to be called from the ADManager.

---

<div class="post-metadata">

**Author:** ![blackreaven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blackreaven](https://forums.unrealengine.com/u/blackreaven)\
**Post date:** [September 20, 2022, 8:36am UTC](https://forums.unrealengine.com/t/event-dispatcher-not-working/652094/6 "2022-09-20T08:36:57Z")

</div>

Fixed the Problem and kind of ashemed of the mistake … It had nothing to do with the Event Dispatcher. But thanks anyway for the fast responses @Nawrot @CtnDev.

I will now try my best to explain the Situation. This is the project structure. I use Insomnia to send Http request at runtime to the Connection Manger (red arrow). The Call then gets send to the ADManager wich dispatches the Event to update the ADActors.  
0

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/a/87a4fcb9f425972fdb9be78bdb7e7a49dd01f9b8.png)

While debugging today I tested to call the ADManager directly wich somehow worked. Then I realized that the mistake was not in the engine, but in the Http request. I had forgotten to add _UEDPIE\_0\__ to the object path wich is used to call objects at runtime.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/a/63a2bef6d581c7ef9e9a1bdccc9422a079aea4b4.png)

The reason why I didnt noticed it earlier is that when this part is left out and you call this HTTP Request at runtime. The Engine still responses and executes the function on the ADManager in the Editor BUT not on the ADManager in the live Game.  
Therefore the Event Dispatcher worked when I called it with the Delay but did not work when I called him trough the Remote Control API at runtime.  
I hope this helps to understand the situation,  
have a nice day.

---

<div class="post-metadata">

**Author:** ![Nawrot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nawrot/32/618260_2.png) [@Nawrot](https://forums.unrealengine.com/u/Nawrot)\
**Post date:** [September 20, 2022, 10:28am UTC](https://forums.unrealengine.com/t/event-dispatcher-not-working/652094/7 "2022-09-20T10:28:49Z")

</div>

I see you at place in unreal dev where you need some system for communicating.

What I did some time ago in similar spot you are now in:

- create “global” dispatcher in game state or game instance game mode etc. some actor that is persistent trough level and present on servers and clients (depends if you have multiplayer game or not)
- create event there that calls dispatcher
- create dispatcher that sends events out. It should have variables like: enum with what group or type of event it is (or who it is sent to), and STRING field that transmits value (you can change type of almost everything into str and other way around)

Then all actors that need to be aware of any event hook to that dispatcher.  
I usually make one such dispatcher for all actors in level (then dispatcher is in game mode or game instance). and one for sending stuff to GUI/umg (then dispatcher is in player controller).

This way you have all the code in single place, and standardized way of communicating.
