I making iventory system. When I take item, it don't adding in my inventory.

Blueprint Runtime Error: “Accessed None trying to read property K2Node_Event_Player”. Node: Add to Inventory Graph: EventGraph Function: Execute Ubergraph Master Item Blueprint: Master_Item
Blueprint Runtime Error: “Accessed None trying to read property CallFunc_GetComponentByClass_ReturnValue”. Node: Add to Inventory Graph: EventGraph Function: Execute Ubergraph Master Item Blueprint: Master_Item



It’s this:

The actor you’re targeting does not own such component.

1 Like

I’m sorry, I don’t understand how fix this.

Whatever actor you connected the blue data wire to does not have the Inventory Component. Ensure the actor does have the inventory component and ensure you’re asking the right actor to retrieve it from.

Where do you call this:

image

I’m sorry, I’m not understand what you are asking. My English is not very good.

Here is an example of you calling (executing) Inspect:

image

Where and how do you call Interact?

I create at this, if you say about this

No. This is the interface. How do you call the function, when and where? Is it safe to assume you’re following a tutorial?

Only here

But this is not a call, this is the implementation. This is a call:

image

Somewhere in the script there is a node like this :point_up_2: but it says Interact instead.

You forgot to plug in the player:

if this script is inside:

image

You can plug in the Self node. If that script is elsewhere, do tell.

1 Like

Really, bro. Thank you for your help.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.