Possessing ConvaiPlayer

Original Discord Post by ejerjian_62445 | 2024-08-20 17:33:01

Hi everyone. currently working on a project where i’m integrating convai into certain actors in the world. I can’t seem to add the convai base player to my player’s class settings without the player bp breaking and all movements being lost. Wondering if anyone has a work around? Would possessing a convai player in the level work the same way?

Reply by k3kalinix | 2024-08-20 18:10:45

Hello <@1156219671096348732>,

<@1216254232957685765>

Reply by mighty_brute | 2024-08-22 05:30:29

Hello <@1156219671096348732>, You can do two things:

  1. Move your player movement code to blueprints so that when you reparent the class, you don’t lose movement functionality.

  2. Alternatively, you can look into the ConvaiBasePlayer and copy over the essential code needed for interaction with the AI character. The ConvaiBasePlayer primarily handles setting up the chat widget and contains the ConvaiPlayerComponent, which are the main components you need from it.

Feel free to reach out to us if you have any more questions or doubts.

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