# Unreal NPC2NPC Manager Interrupting Second NPC

**URL:** https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087
**Category:** Unreal Engine Plugin
**Tags:** question, unreal-engine
**Created:** [November 6, 2024, 8:22pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087 "2024-11-06T20:22:58Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [November 6, 2024, 8:22pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087/1 "2024-11-06T20:22:58Z")

</div>

**Original Discord Post by kevinlmarkley | 2024-11-06 20:22:58**

Using the code from the google drive link on this video, “[https://www.youtube.com/watch?v=tJ5DLgBat5I](https://www.youtube.com/watch?v=tJ5DLgBat5I)”, I have run into a bug. The code was initially working, however without any changes, it has stopped working and only the first NPC will talk but receive no response from the second.

Here are the steps to recreate:

1. Play the game.
2. Press “L” key to begin NPC2NPC conversation and create “ConvaiNPC2NPC\_MGR” actor.
3. First designated NPC will begin talking and their transcription will appear in the chat box.
4. Once first NPC finishes talking, “ConvaiNPC2NPC\_MGR” actor is destroyed and no response is received from second NPC.

Attempted fixes:

1. Changed which NPC was first.  
The first NPC will always speak, but the second won’t.
2. Used different NPCs.  
Same problem, no change as above.
3. Made sure the NPCs were still valid.  
NPCs were still valid even after NPC2NPC\_MGR actor was destroyed.

If I disable the “InterruptSpeech” event, I see that the “ConvaiNPC2NPC\_MGR” is not destroyed but the second NPC will still not respond. This leads me to believe that the problem is occurring with the “ConvaiNPC2NPC\_ChatbotHandler” blueprint or that the transcription portion of this blueprint has been running into an issue.

The “ConvaiNPC2NPC\_ChatbotHandler” actors were destroyed along with “ConvaiNPC2NPC\_MGR” in all cases.

**Embedded Content:**  
**AI NPCs Talking With Each Other | Convai Unreal Engine NPC to NPC t…**  
Characters in game worlds powered by Convai can chat with each other, share ideas, and even get another NPC to carry out actions. This tutorial showcases how you can add simple blueprints to add this functionality and even provide topics that these characters will talk about. More updates on this feature will be coming out soon along with integr…  
Link: [https://www.youtube.com/watch?v=tJ5DLgBat5I](https://www.youtube.com/watch?v=tJ5DLgBat5I)

 ![Thumbnail](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/1X/3e0649d20ae5f8399371f554fc21a5c0ca999dfe.jpeg)

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [November 11, 2024, 4:10pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087/2 "2024-11-11T16:10:34Z")

</div>

**Reply by k3kalinix | 2024-11-11 16:10:34**

Hello \<@488138078339203093\>,

I could not reproduce this issue. Can you please test the sample project?

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [November 11, 2024, 6:10pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087/3 "2024-11-11T18:10:20Z")

</div>

**Reply by kevinlmarkley | 2024-11-11 18:10:20**

Sure, I will give it a try.

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [November 11, 2024, 7:54pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087/4 "2024-11-11T19:54:38Z")

</div>

**Reply by kevinlmarkley | 2024-11-11 19:54:38**

The sample project does work with the same characters. After coping the first person character code from there, the conversation does indeed work again. However, I consistently get this set of errors starting with this: “Blueprint Runtime Error: “Accessed None trying to read property InitiatorHandler”. Node: Branch Graph: IsValid Function: Execute Ubergraph Convai NPC2NPC MGR Blueprint: ConvaiNPC2NPC\_MGR”.

**Images:**

 ![Convai-NPC2NPC-ErrorMessages.PNG](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/1X/78461ff481b9b86e07c6c83e4e149a8acb56bb5a.png)

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [November 11, 2024, 7:56pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087/5 "2024-11-11T19:56:43Z")

</div>

**Reply by kevinlmarkley | 2024-11-11 19:56:43**

Which seems to occur at this location in “ConvaiNPC2NPC\_MGR”.

**Images:**

 ![Convai-NPC2NPC-ErrorLocation.PNG](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/1X/a36ba04de0827f2fe751870b6dd4b2338b10dffa.png)

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [November 11, 2024, 7:59pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087/6 "2024-11-11T19:59:21Z")

</div>

**Reply by k3kalinix | 2024-11-11 19:59:21**

I suggest you look at the sample BPs here and implement them in your own main project.

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [November 11, 2024, 8:19pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087/7 "2024-11-11T20:19:44Z")

</div>

**Reply by kevinlmarkley | 2024-11-11 20:19:44**

Okay, after coping the rest of the code over, I am experiencing an issue when interrupting the AI. It appears that one NPC will interact with me, and then the second will interact with me as if I just interrupted them and/or they are still talking to the other NPC.

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [November 11, 2024, 8:22pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087/8 "2024-11-11T20:22:40Z")

</div>

**Reply by kevinlmarkley | 2024-11-11 20:22:40**

For example: I interrupt one NPC as they were telling a joke about how atoms made up everything. They then turned to me and told me what they were talking about and how that relates to their interests.

They asked me I what I thought and I responded with “that’s great!”.

The second NPC then told me the same joke about the atoms and then continued on about their interests and the topic of conversation.

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [November 15, 2024, 1:26pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087/9 "2024-11-15T13:26:00Z")

</div>

**Reply by k3kalinix | 2024-11-15 13:26:00**

Hello \<@488138078339203093\>,

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [November 15, 2024, 1:26pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087/10 "2024-11-15T13:26:40Z")

</div>

**Reply by k3kalinix | 2024-11-15 13:26:40**

I have not been able to reproduce this problem. Could you please record a video?

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [November 25, 2024, 12:13pm UTC](https://forum.convai.com/t/unreal-npc2npc-manager-interrupting-second-npc/2087/11 "2024-11-25T12:13:59Z")

</div>

This conversation happened on the Convai Discord Server, so this post will be closed.
