# Multiple NPCs in the Same Scene

**URL:** <https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910>\
**Category:** Unity SDK\
**Tags:** question, unity\
**Created:** [December 4, 2023, 8:01pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910 "2023-12-04T20:01:07Z")\
**Posts on this page:** 14\
**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:** [December 4, 2023, 8:01pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/1 "2023-12-04T20:01:07Z")

</div>

**Original Discord Post by titamrs | 2023-12-04 20:01:07**

Hi, I’m working on a unity scene that works in third person. I created 3 NPCs (Blue Robot, Green Robot, and Red Robot) on Convai.  
I already had the objects with the NPC characters models and animations added in the scene, so I simply added a “Convai NPC [Color]” (Blue, Green, and Red) object inside each of the original objects I had. These added objects were based on the “Convai NPC Ellen” object from the example Scene, changing the Character ID to the one I wanted for each NPC and changing some other parts of the object since I already had the 3D model for the NPCs and the animations I wanted.  
The problem is that I have the 3 NPCs with each Character ID on the scene, but only one of them is being detected. If the 3 are active in the scene, Blue Robot is detected. If Blue Robot is inactive, Green Robot is detected. If Blue and Green are inactive, Red is detected. I expected that the 3 would work, depending on where my playable character stood in the scene. I noticed that the objects “Convai NPC [Color]” are all in the same positions in the scene, and not in position (0,0,0), as they should be to stay in the place where the NPC model is. I think that might be the problem. However, when I tried putting the positions as (0,0,0), the conversations stopped working. The REC image won’t show anymore when L CTRL is pressed and the conversation won’t start.  
The first image shows the positions of the objects when the conversation works, but only for one robot, as explained above. The second image shows the hierarchy of the objects.

**Images:**

 ![img1.png](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/6/650bc258b18e1ff5a00619563c59e20dbd16052f.jpeg)  
 ![img2.png](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/4/486d52c1c805f4c2ce74c1b07a87da8390c6f4cf.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:** [December 4, 2023, 8:07pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/2 "2023-12-04T20:07:57Z")

</div>

**Reply by k3kalinix | 2023-12-04 20:07:57**

Hello \<@671874612618854437\>

---

<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:** [December 4, 2023, 8:08pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/3 "2023-12-04T20:08:05Z")

</div>

**Reply by k3kalinix | 2023-12-04 20:08:05**

Welcome to Convai Community!

---

<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:** [December 4, 2023, 8:08pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/4 "2023-12-04T20:08:38Z")

</div>

**Reply by k3kalinix | 2023-12-04 20:08:38**

Which version of Convai are you using?

---

<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:** [December 4, 2023, 8:18pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/5 "2023-12-04T20:18:15Z")

</div>

**Reply by titamrs | 2023-12-04 20:18:15**

I’m using the previous one. Should I update?

---

<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:** [December 4, 2023, 8:18pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/6 "2023-12-04T20:18:44Z")

</div>

**Reply by k3kalinix | 2023-12-04 20:18:44**

NPC manager added in the new update.

---

<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:** [December 4, 2023, 8:20pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/7 "2023-12-04T20:20:53Z")

</div>

**Reply by k3kalinix | 2023-12-04 20:20:53**

I recommend installing the new update. Take a backup in your project before installing it. If you are using Github, you can create the different branch.

By the way, thank you for explaining your problem in detail.

---

<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:** [December 4, 2023, 9:48pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/8 "2023-12-04T21:48:05Z")

</div>

**Reply by titamrs | 2023-12-04 21:48:05**

No problem. Where can I find information on how the NPC manager works?

---

<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:** [December 4, 2023, 10:02pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/9 "2023-12-04T22:02:04Z")

</div>

**Reply by k3kalinix | 2023-12-04 22:02:04**

Basically, what you need to do is add your characters. Then add the name of your character to your Transcript UI object.

---

<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:** [December 11, 2023, 10:09am UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/10 "2023-12-11T10:09:41Z")

</div>

**Reply by enormousvampire | 2023-12-11 10:09:41**

Hey \<@1023671043287699568\> \<@671874612618854437\> is this issue solved ?? Do you need any more assistance?

---

<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:** [December 13, 2023, 11:02pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/11 "2023-12-13T23:02:22Z")

</div>

**Reply by k3kalinix | 2023-12-13 23:02:22**

I think yes.

---

<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:** [December 17, 2023, 10:15pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/12 "2023-12-17T22:15:48Z")

</div>

**Reply by titamrs | 2023-12-17 22:15:48**

I haven’t been able to try solving the problem yet, because I’m busy with other assignments, so that project is currently on hold, but I’m pretty sure the NPC manager will solve the issue 🙂 thanks for the help

---

<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:** [December 19, 2023, 11:43am UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/13 "2023-12-19T11:43:39Z")

</div>

**Replying to titamrs’s Message**

> **Reply by titamrs | 2023-12-17 22:15:48**  
> I haven’t been able to try solving the problem yet, because I’m busy with other assignments, so that project is currently on hold, but I’m pretty sure the NPC manager will solve the issue 🙂 thanks for the help

**Reply by k3kalinix | 2023-12-19 11:43:39**

Awesome!  
If you have any other questions, please do not hesitate to ask.

We would be very grateful if you could leave a comment on our store pages with your company name or the name of your project. We value your feedback and comments as they help us improve our services and products.  
Asset Store: [NPC AI Engine - Dialog, actions, voice and lipsync - Convai | Behavior AI | Unity Asset Store](https://assetstore.unity.com/packages/tools/behavior-ai/npc-ai-dialog-actions-and-general-intelligence-by-convai-235621#reviews)

---

<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:15pm UTC](https://forum.convai.com/t/multiple-npcs-in-the-same-scene/910/14 "2024-11-25T12:15:19Z")

</div>

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