# Character Activation range?

**URL:** <https://forum.convai.com/t/character-activation-range/1275>\
**Category:** Unreal Engine Plugin\
**Tags:** question, unreal-engine\
**Created:** [July 19, 2024, 4:48pm UTC](https://forum.convai.com/t/character-activation-range/1275 "2024-07-19T16:48:41Z")\
**Posts on this page:** 9\
**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:** [July 19, 2024, 4:48pm UTC](https://forum.convai.com/t/character-activation-range/1275/1 "2024-07-19T16:48:41Z")

</div>

**Original Discord Post by nathansrig | 2024-07-19 16:48:41**

Hi, I’m trying to get two convai characters to start talking to eachother a few moments before the player arrives. This is in Unreal. The convai stuff doesn’t seem to activate until I’m within a certain range. I thought I saw a parameter for this somewhere but can’t seem to find it now.

---

<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:** [July 19, 2024, 4:49pm UTC](https://forum.convai.com/t/character-activation-range/1275/2 "2024-07-19T16:49:23Z")

</div>

**Reply by k3kalinix | 2024-07-19 16:49:23**

Hello \<@657352508288663552\>,  
Welcome to Convai Community!

Let me tag \<@&1163218672580575372\> .

---

<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:** [July 22, 2024, 3:16pm UTC](https://forum.convai.com/t/character-activation-range/1275/3 "2024-07-22T15:16:08Z")

</div>

**Reply by freezfast | 2024-07-22 15:16:08**

Hi \<@657352508288663552\>, do you mean the NPC2NPC system? you can check this [tutorial out](https://www.youtube.com/watch?v=tJ5DLgBat5I) as well as try out the sample [UE5.3 project](https://drive.google.com/drive/u/1/folders/1HeCWiB82h__noKEyMd4kM08-FO7D2TMq), finally, it is worth mentioning that there was a crash issue when interrupting the characters, this is fixed on our latest [github commit](https://github.com/Conv-AI/Convai-UnrealEngine-SDK), you can see how to build the latest version of the plugin [here](https://github.com/Conv-AI/Convai-UnrealEngine-SDK)

**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)  
**GitHub - Conv-AI/Convai-UnrealEngine-SDK: This Unreal Engine plugin…**  
This Unreal Engine plugin integrates Convai API for conversational AI and environment perception and action-taking by the AI in Unreal Engine. - Conv-AI/Convai-UnrealEngine-SDK  
Link: [GitHub - Conv-AI/Convai-UnrealEngine-SDK: This Unreal Engine plugin integrates Convai API for conversational AI and environment perception and action-taking by the AI in Unreal Engine.](https://github.com/Conv-AI/Convai-UnrealEngine-SDK)

---

<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:** [July 22, 2024, 11:23pm UTC](https://forum.convai.com/t/character-activation-range/1275/4 "2024-07-22T23:23:09Z")

</div>

**Reply by nathansrig | 2024-07-22 23:23:09**

Ah, I was just about to make a post about the Infinite loop when interruping NPC conversation before both NPCs have spoken.

---

<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:** [July 23, 2024, 8:06pm UTC](https://forum.convai.com/t/character-activation-range/1275/5 "2024-07-23T20:06:14Z")

</div>

**Reply by nathansrig | 2024-07-23 20:06:14**

I do get an error trying to build the latest plug-in

---

<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:** [July 23, 2024, 8:07pm UTC](https://forum.convai.com/t/character-activation-range/1275/6 "2024-07-23T20:07:19Z")

</div>

**Reply by nathansrig | 2024-07-23 20:07:19**

P:\UnrealInstall\UE\_5.4\Engine\Source\Runtime\Core\Public\String\FormatStringSan.h(99): error C2338: static\_assert failed: ‘’%s’ expects `TCHAR*`; use ‘%hs’ for `const char*`.’  
P:\UnrealInstall\UE\_5.4\Engine\Source\Runtime\Core\Public\String\FormatStringSan.h(99): note: the template instantiation context (the oldest one first) is  
P:\ConvaiBuild\Convai-UnrealEngine-SDK\Output\Convai-UnrealEngine-SDK\HostProject\Plugins\ConvAI\Source\Convai\Private\ConvaiGRPC.cpp(1024): note: see reference to class template instantiation ‘UE::Core::Private::FormatStringSan::TPresentErr\<1\>::TErrMsg\<UE::Core::Private::FormatStringSan::TAtArgPos\<2\>\>’ being compiled

Error executing C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe (tool returned code: 2)

---

<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:** [July 23, 2024, 8:21pm UTC](https://forum.convai.com/t/character-activation-range/1275/7 "2024-07-23T20:21:55Z")

</div>

**Replying to nathansrig’s Message**

> **Reply by nathansrig | 2024-07-23 20:07:19**  
> P:\UnrealInstall\UE\_5.4\Engine\Source\Runtime\Core\Public\String\FormatStringSan.h(99): error C2338: static\_assert failed: ‘’%s’ expects `TCHAR*`; use ‘%hs’ for `const char*`.’  
> P:\UnrealInstall\UE\_5.4\Engine\Source\Runtime\Core\Public\String\FormatStringSan.h(99): note: the template instantiation context (the oldest one first) is  
> P:\ConvaiBuild\Convai-UnrealEngine-SDK\Output\Convai-UnrealEngine-SDK\HostProject\Plugins\ConvAI\Source\Convai\Private\ConvaiGRPC.cpp(1024): note: see reference to class template instantiation ‘UE::Core::Private::FormatStringSan::TPresentErr\<1\>::TErrMsg\<UE::Core::Private::FormatStringSan::TAtArgPos\<2\>\>’ being compiled

Error executing C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe (tool returned code: 2)

**Reply by freezfast | 2024-07-23 20:21:55**

Hi \<@657352508288663552\>, this is an issue on the latest msvc compiler, \<@1216254232957685765\> please provide steps on how to solve

---

<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:** [July 23, 2024, 8:22pm UTC](https://forum.convai.com/t/character-activation-range/1275/8 "2024-07-23T20:22:44Z")

</div>

**Reply by freezfast | 2024-07-23 20:22:44**

\<@657352508288663552\> it would be great if you could create a new ticket for this issue so it’s easier to track

---

<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:14pm UTC](https://forum.convai.com/t/character-activation-range/1275/9 "2024-11-25T12:14:55Z")

</div>

Closed on November 25, 2024, 12:14pm UTC

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