Original Discord Post by hiimabiel | 2024-10-25 01:40:20
Hello, I’m making an application where my character sits down on voice command. I’m using the ConvaiActionHandler.cs script and I set up my action following the steps (STEP 1: Add the enum for your custom action here., STEP 2: Add the function call for your action here corresponding to your enum. STEP 3: Add the function for your action here.) However, when my character is asked to sit down, the server activates both the MoveTo action and the Sit actions (example message: “John, please sit on the chair.”). What can I do so that the MoveTo action doesn’t get activated? It’s often making the second action lose the target (chair). I tried tracking down how the actions are handled and I found the actionResponseList and tracked it in the ConvaiGRPCAPI.cs script but I’m a bit lost on what to do. Thanks! Here’s an image of the Debug:
I’ve been struggling for days. It happens that the MoveTo function almost always gets called. Sometimes, the Convai server asigns the chair object to Sit(), sometimes it doesn’t, sometimes it runs MoveTo(), sometimes it doesn’t. I would like it to be concise or to know how to prevent the MoveTo() function to enter under that choice of words… I’m a little lost. Thank you!