# Event Dispatcher only works in Editor but not in Shipping Build

**URL:** <https://forums.unrealengine.com/t/event-dispatcher-only-works-in-editor-but-not-in-shipping-build/612463>\
**Category:** Blueprint\
**Tags:** Event-Handler, unreal-engine, UE5-0, Blueprint, question\
**Created:** [July 23, 2022, 1:38pm UTC](https://forums.unrealengine.com/t/event-dispatcher-only-works-in-editor-but-not-in-shipping-build/612463 "2022-07-23T13:38:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitalritualstudio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalritualstudio/32/721618_2.png) [@digitalritualstudio](https://forums.unrealengine.com/u/digitalritualstudio)\
**Post date:** [July 23, 2022, 1:38pm UTC](https://forums.unrealengine.com/t/event-dispatcher-only-works-in-editor-but-not-in-shipping-build/612463/1 "2022-07-23T13:38:35Z")

</div>

Hi

I’m trying to have an Event Dispatcher on a Blueprint called BP\_Platform where when the Player Overlaps the Platform an Event should get fired on the Level Blueprint which subscribed to the EventDispatcher on the BP\_Platform in order to spawn an Explosion on the Platform.

I have the Blueprint setup like this:

BP\_Platform :

 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/a/45a05021e72248248b8da11cdf86fc36e84aa619.png)

Level Blueprint:

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/c/2cc60a5c1d63a457d9a7b679ea9e9185b796d208.png)

Weird is that it works in the Editor but when I build it to a Windows Ship the Explosion is not being spawned and I wonder why?

And I apologize for this beginner question since I’m very new to Unreal Engine and Blueprint Scripting, so any input on this would be highly appreciated!

Kind Regards

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [July 23, 2022, 4:26pm UTC](https://forums.unrealengine.com/t/event-dispatcher-only-works-in-editor-but-not-in-shipping-build/612463/2 "2022-07-23T16:26:38Z")

</div>

How and in what class do you bind to this event?

It may be that it’s not calling and reacting to the event is broken, but binding to the event.

---

<div class="post-metadata">

**Author:** ![digitalritualstudio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalritualstudio/32/721618_2.png) [@digitalritualstudio](https://forums.unrealengine.com/u/digitalritualstudio)\
**Post date:** [July 23, 2022, 4:52pm UTC](https://forums.unrealengine.com/t/event-dispatcher-only-works-in-editor-but-not-in-shipping-build/612463/3 "2022-07-23T16:52:48Z")

</div>

As shown in the Screenshots I call the event in the BP\_Platform and I am binding (subscribing) to the Event “PlatformPressed” inside the Level Blueprint to call this function. The BP\_Platform is setup in the Level Editor.

My suggestion: Can it be that the Level Blueprint binds to the event before the BP\_Platform EventGraph is being initialized which later on calls the Event Delegate?

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [July 23, 2022, 5:43pm UTC](https://forums.unrealengine.com/t/event-dispatcher-only-works-in-editor-but-not-in-shipping-build/612463/4 "2022-07-23T17:43:45Z")

</div>

Ah, I guess I know what the issue is.  
You use ActorBeginOverlap, but since the platform is a solid object that blocks the character, it’s never going to be overlapped.  
Even if you force the actual physical overlapping of the platform and the character, the engine will still not fire the ActorOverlap event, because these two actors aren’t supposed to overlap each other.

I suggest adding a trigger box component to the platform BP and use the component overlap instead.

---

<div class="post-metadata">

**Author:** ![digitalritualstudio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalritualstudio/32/721618_2.png) [@digitalritualstudio](https://forums.unrealengine.com/u/digitalritualstudio)\
**Post date:** [July 23, 2022, 6:06pm UTC](https://forums.unrealengine.com/t/event-dispatcher-only-works-in-editor-but-not-in-shipping-build/612463/5 "2022-07-23T18:06:16Z")

</div>

In fact it does overlap since I’ve set the Collision Preset of the BP\_Platform-\>StaticMesh to “OverlapAllDynamic” like so:

![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/0/0d058760fb42c34f0bda9eb43f0fe05ec8924ea9.png)

And as stated the collision works fine in the editor.

The problem is that the EventDispatcher is not getting called when I compile/build/ship the game as a executable program (in this case as an exe since it’s compiled for windows).

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [July 23, 2022, 6:10pm UTC](https://forums.unrealengine.com/t/event-dispatcher-only-works-in-editor-but-not-in-shipping-build/612463/6 "2022-07-23T18:10:07Z")

</div>

Okay, I see.  
Try adding a short delay before subscribing to the platform event in the level BP, if you’re doing it on BeginPlay.  
I guess the initialization sequence may differ in the editor and in the standalone build.

---

<div class="post-metadata">

**Author:** ![digitalritualstudio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalritualstudio/32/721618_2.png) [@digitalritualstudio](https://forums.unrealengine.com/u/digitalritualstudio)\
**Post date:** [July 23, 2022, 6:35pm UTC](https://forums.unrealengine.com/t/event-dispatcher-only-works-in-editor-but-not-in-shipping-build/612463/7 "2022-07-23T18:35:33Z")

</div>

Ok so adding a delay worked and I moved the part where the explosion happens in to a seperate function which will get called by the delegate:

 ![4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/3/e7373a344114dfd885255370adf3756a087fb93d.png)

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

But I have a hard time accepting this as an answer since it’s very dangerous to assume that the level is being loaded after X Seconds… Isn’t there another way to tell Unreal to actually wait until the loading sequence is finished so that the events can be bound?

---

<div class="post-metadata">

**Author:** ![pezzott1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pezzott1/32/1215068_2.png) [@pezzott1](https://forums.unrealengine.com/u/pezzott1)\
**Post date:** [July 23, 2022, 6:37pm UTC](https://forums.unrealengine.com/t/event-dispatcher-only-works-in-editor-but-not-in-shipping-build/612463/8 "2022-07-23T18:37:22Z")

</div>

As suggestion: If you bind it in begin play of The actor rather than level bp you could save yourself the workaround.

---

<div class="post-metadata">

**Author:** ![digitalritualstudio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalritualstudio/32/721618_2.png) [@digitalritualstudio](https://forums.unrealengine.com/u/digitalritualstudio)\
**Post date:** [July 23, 2022, 6:43pm UTC](https://forums.unrealengine.com/t/event-dispatcher-only-works-in-editor-but-not-in-shipping-build/612463/9 "2022-07-23T18:43:02Z")

</div>

That was exactly what it needed to work.

@Tuerer 's workaround might helped with the level blueprint to get the events bound on level startup but the delay is something that wouldn’t be too efficient since I had to do the workaround like provided in my last post.

@pezzott1 for what I can tell then the only problem was the dev (in this case me) ignoring the best practice solution.

Anyway thank you both your inputs really helped me a lot!

Have a great weekend!
