# How to handle the Begin Play events for actors added in the editor?

**URL:** <https://forums.unrealengine.com/t/how-to-handle-the-begin-play-events-for-actors-added-in-the-editor/318194>\
**Category:** Editor Scripting\
**Tags:** actors, reference, event-begin-play, unreal-engine, question, Blueprint\
**Created:** [May 11, 2015, 11:32am UTC](https://forums.unrealengine.com/t/how-to-handle-the-begin-play-events-for-actors-added-in-the-editor/318194 "2015-05-11T11:32:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stormrage256](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stormrage256/32/1008648_2.png) [@Stormrage256](https://forums.unrealengine.com/u/Stormrage256)\
**Post date:** [May 11, 2015, 11:32am UTC](https://forums.unrealengine.com/t/how-to-handle-the-begin-play-events-for-actors-added-in-the-editor/318194/1 "2015-05-11T11:32:43Z")

</div>

Hi, I have a few actor blueprints that I have added to the level in the editor. All of them have executable code running as part of Event Begin Play. And in one case, the actor is referencing another one of these actors. It is running smoothly as this point, but I don’t think what I’m doing is safe practice.

What if the referenced actor [Let’s call it Actor B] has not finished initializing in ? So should I fire off that begin play functionality as part of a custom event that is called when the first actor [Actor A] goes through it’s begin play event to the completion?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [May 11, 2015, 11:48am UTC](https://forums.unrealengine.com/t/how-to-handle-the-begin-play-events-for-actors-added-in-the-editor/318194/2 "2015-05-11T11:48:02Z")

</div>

You could put a half second delay in.

That would make sure they all exist before anything happens.

---

<div class="post-metadata">

**Author:** ![Stormrage256](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stormrage256/32/1008648_2.png) [@Stormrage256](https://forums.unrealengine.com/u/Stormrage256)\
**Post date:** [May 11, 2015, 12:35pm UTC](https://forums.unrealengine.com/t/how-to-handle-the-begin-play-events-for-actors-added-in-the-editor/318194/3 "2015-05-11T12:35:09Z")

</div>

Yes I suppose that should work in some cases, but it still doesn’t guarantee that the other actors have finished storing a reference that I can use. The begin play code would still start running for all actors at the same .

Do you know if there’s any standard workflow that’s used in the industry to handle stuff like this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [May 11, 2015, 12:38pm UTC](https://forums.unrealengine.com/t/how-to-handle-the-begin-play-events-for-actors-added-in-the-editor/318194/4 "2015-05-11T12:38:52Z")

</div>

All depends on how you are referencing them.

---

<div class="post-metadata">

**Author:** ![Stormrage256](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stormrage256/32/1008648_2.png) [@Stormrage256](https://forums.unrealengine.com/u/Stormrage256)\
**Post date:** [May 11, 2015, 5:11pm UTC](https://forums.unrealengine.com/t/how-to-handle-the-begin-play-events-for-actors-added-in-the-editor/318194/5 "2015-05-11T17:11:03Z")

</div>

I got the answer from the Unreal forums. It seems it’s better to spawn them as part of another script like level blueprint or game mode rather than just putting them in the editor. Here’s the link to the forum post:

[[How to handle the Begin Play events for actors added in the editor? - Blueprint - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?69674-How-to-handle-the-Begin-Play-events-for-actors-added-in-the-editor&p=289642#post289642)

[How to handle the Begin Play events for actors added in the editor? - Blueprint - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?69674-How-to-handle-the-Begin-Play-events-for-actors-added-in-the-editor&p=289642#post289642)

---

<div class="post-metadata">

**Author:** ![semi.essessi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@semi.essessi](https://forums.unrealengine.com/u/semi.essessi)\
**Post date:** [September 3, 2019, 11:44am UTC](https://forums.unrealengine.com/t/how-to-handle-the-begin-play-events-for-actors-added-in-the-editor/318194/6 "2019-09-03T11:44:16Z")

</div>

the half second delay suggestion is poison. can someone remove it?

its terrible leaving it here in a place that’s meant for answers…
