# Event bindings are incorrectly copied on duplicate of an actor

**URL:** <https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, Blueprint, question\
**Created:** [March 7, 2015, 2:29pm UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780 "2015-03-07T14:29:20Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [March 7, 2015, 2:29pm UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/1 "2015-03-07T14:29:20Z")

</div>

Hi there,

Found a serious bug in BPs to do with event bindings:

- Create an actor BP
- Add a trigger box property to this BP and make it editable
- Add an event handler for actor overlap for this new property
- Place this new actor in level
- Create a trigger for it and set that trigger on player
- Duplicate actor and create another new trigger
- Assign this new trigger to newly duplicated actor
- Now move another player controlled actor between triggers
- Note that first trigger calls first BP actor and duplicated one.
- duplicated actor retains binding to original trigger not matter what you do

I believe this is a bug.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 7, 2015, 4:45pm UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/2 "2015-03-07T16:45:09Z")

</div>

Hi TommyBear,

I haven’t been able to reproduce this in 4.7.2. Which version of engine are you using? Can you post a screenshot of your BP Event Graph so I can make sure I’m following along correctly? Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 12, 2015, 11:19pm UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/3 "2015-03-12T23:19:52Z")

</div>

Hi TommyBear,

We haven’t heard back from you in a while, so I’m resolving this post for tracking purposes. Please let us know if you’re still experiencing this issue with information requested above, and we can continue investigating. Thanks!

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [March 12, 2015, 11:26pm UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/4 "2015-03-12T23:26:38Z")

</div>

I’m going to try to get a repro project for you . Sorry been a bit busy!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 12, 2015, 11:31pm UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/5 "2015-03-12T23:31:37Z")

</div>

Sounds good, thanks!

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [March 13, 2015, 2:07am UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/6 "2015-03-13T02:07:34Z")

</div>

Okay I have a repro! Uploading to my dropbox now. Will share link ASAP. So here are distilled steps:

- I used third person project type with no content
- Create an empty actor and place it somewhere in level (ActorA)
- Create a Box Trigger (TriggerA) and place it in your level
- Create a BP on actorA (create/edit BP button on actor)
- Save this BP somewhere in your project
- Create a new property of type BoxTrigger on your actor BP and make it editable
- Call it MyBoxTrigger
- In properties for MyBoxTrigger, click green “+” button for OnActorBeginOverlap
- Connect node up to notify you on screen. I used this (note that my boxtrigger propery was call MyTriggerVolume):

 ![33935-screen+shot+2015-03-13+at+1.00.01+pm.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/d/64df5a97f0a8c28f3f21109a6cc5d9f4b9e0b450.png)

- Save
- In your level, assign triggerA to MyBoxTrigger property on actorA’s details
- Run game and run character over trigger
- You should get a message like “Player blah triggered triggerA”
- Now alt-drag actorA somewhere to duplicate it, rename it to actorB
- alt-drag triggerA somewhere to duplicate it and rename it triggerB
- Click on actorB, and set that MyBoxTrigger property to point to triggerB
- Run game and run over to trigger B, you get something like “Player has triggered triggerB”, perfect
- Now run over to triggerA, notice that you get two messages! “Player triggered triggerA” followed by “Player triggered triggerB”
- That is bug 🙂

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [March 13, 2015, 2:09am UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/7 "2015-03-13T02:09:28Z")

</div>

Here is link to repro:

> **[Dropbox - Error](https://www.dropbox.com/s/sixi6k6c6dx8duh/EventDispatchRepro.?dl=0)**
>
> Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 13, 2015, 2:45am UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/8 "2015-03-13T02:45:00Z")

</div>

Well, after opening project I first tested your original repro steps with, it looks like I’m seeing same bug. Maybe it has something to do with closing/reopening project? I’m going to test with your new repro steps as well, and then check in our main internal branch. I’ll get back to you when I have some more information. Thanks!

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [March 13, 2015, 2:55am UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/9 "2015-03-13T02:55:48Z")

</div>

Awesome! Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 13, 2015, 5:04pm UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/10 "2015-03-13T17:04:25Z")

</div>

Hey TommyBear,

Thanks for detailed repro steps! I was able to reproduce this both in 4.7.2 and in our main internal build, and I have entered a bug report for it (UE-11819). I’ll let you know when I see an update on it. For now, dropping a new BP instance into level (rather than duplicating an existing one) seems to avoid this bug. Thanks again!

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [March 14, 2015, 1:29am UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/11 "2015-03-14T01:29:21Z")

</div>

Hey ! Awesome news. Thank you very much for confirming bug, glad you can see it internally!

---

<div class="post-metadata">

**Author:** ![HCK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HCK](https://forums.unrealengine.com/u/HCK)\
**Post date:** [January 12, 2016, 10:31am UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/12 "2016-01-12T10:31:56Z")

</div>

I just experienced this bug myself in 4.10.1 so it’s still not fixed. I think this is a rather serious bug because you spend a lot of time to find out what’s actually going wrong.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [January 12, 2016, 6:16pm UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/13 "2016-01-12T18:16:38Z")

</div>

Hi ,

I just tested this again in 4.10.2, and bug no longer occurs using steps described above. This was marked as fixed in 4.8, so it hasn’t been happening for a while. Can you give me some detailed steps to follow that reproduces bug for you? Thanks!

---

<div class="post-metadata">

**Author:** ![HCK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HCK](https://forums.unrealengine.com/u/HCK)\
**Post date:** [January 13, 2016, 9:23am UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/14 "2016-01-13T09:23:29Z")

</div>

Thank you for your fast reply.  
I uploaded a project for you to easily reproduce bug:

[http://we.tl/iTSOGzoIif](http://we.tl/iTSOGzoIif)

Notice that events broadcasted are arriving in all actors, not just in one that broadcasted it. I included owner as a parameter to easily see that wrong event is arriving. Like original bug mentioned in this thread this only happens if you duplicate actors.

Also important: This only happens if base class which holds component is a C++ class.  
Maybe bug also occurs if you leave out one level of inheritance but I reconstructed it way it is in our project.

Thanks again and good luck with bug hunting!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [January 13, 2016, 7:26pm UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/15 "2016-01-13T19:26:00Z")

</div>

Hi ,

This appears to be a separate bug, as what was fixed involved a simple variable reference. They may be related, so I’ll reference fixed bug report in new one when I enter it. If you wouldn’t mind, please create a new post with this information and this same link, so I can follow up with it there. Please also include specific steps you took to reproduce in a fresh project. I’ll attempt same here and see what we get. Thank you!

---

<div class="post-metadata">

**Author:** ![HCK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HCK](https://forums.unrealengine.com/u/HCK)\
**Post date:** [January 14, 2016, 9:34am UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/16 "2016-01-14T09:34:36Z")

</div>

OK, I did so:

> **[Component events arrive in wrong actor when actors are duplicated](https://forums.unrealengine.com/questions/360058/component-events-arrive-in-wrong-actor-when-actors.html)**
>
> Here is a new project illustrating the bug: http://we.tl/iTSOGzoIif Bug description: I have a pawn base class and an actor component, both written in C++. The pawn base class is equipped with the actor component, which has a dynamic delegate,...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [January 14, 2016, 2:27pm UTC](https://forums.unrealengine.com/t/event-bindings-are-incorrectly-copied-on-duplicate-of-an-actor/309780/17 "2016-01-14T14:27:41Z")

</div>

Excellent, thank you! I’ve got someone assigned to it, and we’ll post there if we have any follow-up questions and let you know if we enter a bug report. Thanks!
