Hey so i need help with creating a simple NPC shopping system, meaning i need npc to go to an object take random amount of items from the objects inventory and than go to the store table and drop the items.
This is what the behavior tree loks so far
Hey so i need help with creating a simple NPC shopping system, meaning i need npc to go to an object take random amount of items from the objects inventory and than go to the store table and drop the items.
This is what the behavior tree loks so far
Problem is that the cast fails and i tried using a variable but that comes out as not valid
hi, when the cast fail, that often mean it not the correct blueprint actor or doesnt exist yet in the world. You can double check that using a print string or breakpoint on the node cast to see it real-time value reference.
I recommend watching those tutorial made by epic staff:
#1
(note at 6:39 which event he used and how he cast but i still recommend to watch the whole tutorial)
#2
Also note that chatgpt whether it Epic Developer Assistant or Gemini will heavily hallucinate, at least from what i have tested for c++ only because it will invent method(function of a class) by itself or invent include/module that doesnt exist. So am assuming the Ai will get confused by mixing ideas on blueprint as well.
Anyway just follow those tutorials made by epic staff, you will save time in the long term to be honest.
Hey so i was looking through the tutorials and maybe i´m not looking hard enough but i could´nt find anything about Ai accesing inventory of objects / smart objects
Check this