Original Discord Post by therealurself | 2024-04-24 09:10:42
Hi Just wanted to check if I can add the custom actions as part of the AI response. Like for eg I would want the character to cough (custom action) while having specific response. Is that possible? Another question is related to audio response how do I avoid the audio response when having custom action is part of the response? For eg I dont want the audio to pick " laugh I am doing well thank you" I want to skip the laugh as part of the audio file.
I am currently looking at implementing a hybrid solution where the custom actions required is triggered by game logic rather than the convai. Just wanted to know if convai does it out of the box anyways.
What you want to do in Unreal Engine works as shown in the image below.
In the same way, in Unity, you can check the string response that comes from the server in the if statement with the String.Contains method. If it contains it, you can run the function you want.