Target not being found in Action function

Original Discord Post by rookie910 | 2024-09-20 14:16:33

So i have this action function ive written called Drive, and when i call it through convai the Drive function itself is getting called, but for some reason the target is always being set as null, even though the target is defined and active in the scene.

as in the pictures attached, the line “Target is null! Exiting PickUp coroutine.” keeps being called. any ideas or leads as to why this is happening would be appreciated.

When the drive function gets called from any other action choice case such as MoveTo, there’s no issue but when it gets called from the Drive action choice case, the target object reference is null.

Images:


Reply by k3kalinix | 2024-09-20 14:23:20

What is the target object?

Reply by rookie910 | 2024-09-23 10:23:27

the target gameobject is an empty active gameobject called park, which ive assigned to and placed in the Convai NPC inspector. When i use “MoveTo” function this works fine, but for some reason in Drive function its coming as null.

Images:
image.png

Reply by k3kalinix | 2024-09-23 10:43:29

Could you please share Action Logs?

Reply by k3kalinix | 2024-09-23 10:43:34

And Session ID?

Reply by rookie910 | 2024-09-23 13:57:34

yes sure. this is the action logs. first i call MoveTo which runs, then after MoveTo i call drive which also runs but the target is coming as null.

Images:

Reply by rookie910 | 2024-09-23 13:57:49

where can i find the session ID?

Reply by k3kalinix | 2024-09-23 14:01:13

At convai.com click on your character, in the memory section.

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