I tried to launch Update Main Character from On Component activated Mesh, but then I realized, It won’t work, because I need to update the function ConvaiGetLookedAtCharacter to be able to Set Chatbot variable. Because variable Chatbot can be set only if special parameters like Radius, Player controller are set correct. However I can’t even read the function ConvaiGetLookedAtCharacter because it’s the part of Convai plugin
You already shared many times that article. However it’s irrelevant for my case. That article is about “how to use set the Main character the AI is talking to and the Object In Attention”, which isn’t my goal. My goal is to set the Attention object BEFORE TALKING. NPC should focus on me regardless talking.
Check my screenshot, please. There you can see I’m trying to set Chatbot variable, but I can’t because I need to input some proper parameters for it.
I shared the documentation because it contains the solution to your request. If you place the logic in the Begin Play event, the NPC will turn its head toward you before any conversation starts. We expect our users to have a basic understanding of Unreal Engine, but for clarity, I’m sharing an example blueprint screenshot to illustrate this setup.
Additionally, if the NPC has its back to you and you want the body to turn as well, you can implement a small trick. In the Convai_MetaHuman_BodyAnim Animation Blueprint, navigate to the SetTurn Graph. Modify the Branch logic for IsInConversation by connecting the False Execution pin to the next node. This ensures the NPC always turns toward the player.
Here’s the relevant screenshot for reference. Let us know if you have any further questions!