Sending text string to convai NPC via unity event system

Reply by etinesaego | 2024-08-05 10:53:08

new method bc im attaching this to a game object that uses event system for button press to send the string multiple times for different strings

Reply by etinesaego | 2024-08-05 10:53:30

sounds like im completely lost

Reply by etinesaego | 2024-08-05 10:54:28

oh wait so you’re saying I can just take the convainpc script ad tie that to the event in qustion then call the string from there

Reply by k3kalinix | 2024-08-05 10:54:52

Just get the active ConvaiNPC’s reference from ConvaiNPCManager and call SendTextDataAsync method.

Reply by etinesaego | 2024-08-05 10:57:27

I got it

Reply by etinesaego | 2024-08-05 10:57:41

problem solved. I wanted to take the long way apparently

Reply by k3kalinix | 2024-08-05 10:58:04

Yeah :smile:

Reply by etinesaego | 2024-08-05 10:58:19

sometimes you can’t see the forest for the trees

Reply by k3kalinix | 2024-08-05 11:01:17

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

Embedded Content:
NPC AI Engine - Dialog, actions, voice and lipsync - Convai | Behav…
Get the NPC AI Engine - Dialog, actions, voice and lipsync - Convai package from Convai and speed up your game development process. Find this & other Behavior AI options on the Unity Asset Store.
Link: NPC AI Engine - Dialog, actions, voice and lipsync - Convai | Behavior AI | Unity Asset Store

Reply by etinesaego | 2024-08-05 11:02:21

roger that will do

Reply by k3kalinix | 2024-08-05 12:54:05

Thank you <@1101428836916264993> :blush:
If you have another question, you can ask it again by creating a new post.

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