Action: How to Interacting with 2 objects?

Original Discord Post by darkladen | 2024-06-10 20:31:41

Hi, I am trying to perform an interaction with 2 objects, one of which is a glass and the other a small table. The idea is that the NPC can fetch the object on the table and perform the same operation in reverse.

Regarding this, something happens but the NPC when he goes to look for the object, he is not able to reach it because something prevents him and the same thing happens if I tell him to leave the object on the table because he doesn’t know how to leave it on the table, so I see this task as more complex.

It would be ideal to be able to interact in this same way but, for example, with 2 tables and each table with an object on it, so that if I ask him to bring an object and then I ask him for the other object, he can go to leave the first object and then bring the new object.

Some clue ?
thanks !!

Reply by darkladen | 2024-06-11 16:47:19

Talking about problems with grasping objects… Why, when i have a object(actor) over other object(actor), my npc cant grab the actor over other actor.
E.g: my npc cant grab a glass over a table.

Are there any settings that need to be configured?

Reply by darkladen | 2024-06-12 13:27:42

Any help ?

Reply by k3kalinix | 2024-06-12 15:04:46

Hello <@305834434178056192>

Reply by k3kalinix | 2024-06-12 15:05:09

Are you asking for Unreal Engine?

Reply by darkladen | 2024-06-12 17:56:38

Hello, yes UE5

Reply by k3kalinix | 2024-06-13 00:47:06

<@365628745886859267>

Reply by freezfast | 2024-06-13 07:51:48

Hi <@305834434178056192>, you will need to add two actions to the character: Drop and pickup, each action will trigger the corresponding animation montages, check out are actions tutorial where we go heavy on that specific topic.

As for the character not able to move to the table saying that the path is blocked, you need to first ensure that the path is not blocked by using the AI move to function at the begin play, if the character is able to move to the table without error then it will also work with action. However, if it was not able to move then I recommend you debug your navigation and collision boxes first before trying actions

cc: <@1023671043287699568> please share the tutorial link for actions

Reply by k3kalinix | 2024-06-13 07:55:58

Embedded Content:
AI NPCs Take Action from Conversation | Environment and Object Awar…
Characters feel life-like if conversations have consequences involving not only verbal responses but also behaviors and actions. This may include interacting with the environment or other characters. Convai’s NPCs can navigate complex verbal instructions and convert them to natural actions in the game engine. For example, characters can perform …
Link: https://www.youtube.com/watch?v=phAkEFa6Thc

Reply by darkladen | 2024-06-13 16:48:14

Hello !!! The truth is that what I have is the same as you tell me only that I’m trying to perform more detailed tasks. As I was saying, my problem is that if I want my npc to grab an object(a glass) that is on a table(another object) even if the glass is as close to the edge of the table, it takes him a long time to try to take the glass because of collision problems although in the end he still takes it(only if it is very close to the edge of the table) he sends me an error message saying that there is something blocking his way. I have tried changing the collision area of the NPC but when I make any change, the NPC even stops doing actions like “dancing”. I would like to see that the npc can take things that are on other objects as I could create an avatar that can approach me things and talk about these specifically, say as a product wizard.

At the end of the day it can only take objects from the floor. It also happens that if I want to bring more than one object, it can’t drop it or even bring it because there is already an object nearby. Only if I change my location can it bring me another object… this is strange seeing that the space around me is wide.

I am investigating how to solve these problems with the tools that UE has so that each object does not cover so much space and that it can take or leave objects on another object.

Thanks.

Reply by freezfast | 2024-06-21 11:58:32

It might be worth to play a bit with the movement component. I think it be try to brake so hard before reaching its destination which causes it to freeze

Reply by darkladen | 2024-06-24 13:40:51

From what I’ve noticed, is that because the object is bigger than the one I want the npc to take, the npc tries to reach the centre point of the smaller object but collides with the bigger object before that. I’m still testing, thanks.

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