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.
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.