Question about Actions order

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:

Images:
image.png

Reply by k3kalinix | 2024-10-26 00:42:03

Hello <@328311427980984322> :wave:t2:,

Reply by k3kalinix | 2024-10-26 00:42:55

Can i see the Actions?

Reply by hiimabiel | 2024-10-26 01:04:33

Hi <@1023671043287699568> thank you fo your answer

Reply by hiimabiel | 2024-10-26 01:04:45

These are the actions in the inspector window

Reply by hiimabiel | 2024-10-26 01:04:47

Images:

Reply by hiimabiel | 2024-10-26 01:07:20

Here is the enum

Reply by hiimabiel | 2024-10-26 01:07:25

Images:

Reply by hiimabiel | 2024-10-26 01:07:52

Reset()

Reply by hiimabiel | 2024-10-26 01:07:53

Images:

Reply by hiimabiel | 2024-10-26 01:08:39

Case for Sit()

Reply by hiimabiel | 2024-10-26 01:08:40

Images:

Reply by hiimabiel | 2024-10-26 01:10:06

and IEnumerator

Reply by hiimabiel | 2024-10-26 01:10:08

Images:

Reply by hiimabiel | 2024-10-26 01:12:19

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!

Reply by hiimabiel | 2024-10-27 13:45:52

when it does work well, the target is successfully passed to both methods, effectively sitting down

Reply by hiimabiel | 2024-10-27 13:45:54

Images:
image.png

Reply by k3kalinix | 2024-10-28 13:52:02

I will test it and let you know.

Reply by hiimabiel | 2024-10-28 20:59:06

Thank you!

Reply by k3kalinix | 2024-10-29 11:03:16

Hello <@328311427980984322>,