Error message that I DON'T Understand

A video of the error I am getting is here: Untitled1 - YouTube (the video also shows what I describe in the following paragraph)

What is supposed to happen: I press E while standing over an item (a pepsi can). The game hides the item and removes its collision because my character has picked it up. The item SHOULD be added to my inventory (the default icons in my inventory are pepsi cans which can be confusing) but no matter what icon is clicked, no action menu shows up (an action menu with options such as “use” or"drop" should be visible when clicking on an inventory slot with something in it.) During debug the script makes it through the ADD node which is meant to add the pepsi can to my inventory array, and yet it isn’t actually added to my inventory. Please help!

Thank you
Nate Olson

Hey,

Answer seems to be simple.

Accessed none means there is nothing. In pure C++ you would get exception.

Blueprint shows it as error and skip it.

Make sure your variables are set properly. You can use is valid node to make sure.

One variable which isn’t set properly is CharacterRef and the second one I don’t see. Make sure to check.

Make sure to check Character refernce first as It will don’t add item then continue debugging.

How do I find the issue with Character reference. Why wouldn’t it work?

Where is your characterRef variable? Go there and make sure it’s set for eg you can try get player controller than get pawn and cast this will give you character in singleplayer.

Set for eg? What does that mean? I will try to find the place where the value for characterRef is set. I don’'t really understand the rest of what you are trying to say.

It means set for example. Just a sample.

Here are samples:

281590-bp2.png