Accessed None Trying to Read Property "ItemObject"

IITheRatKingII
Sat, 17 Feb 2024 01:12:08 +0000
Programming & Scripting

I am trying to make a multiplayer inventory system, and right now I am running into trouble when trying to drop an item from the inventory. I have everything SO CLOSE to working but there is just one issue. When trying to drop an item there is an error that says, Blueprint Runtime Error: "Accessed None trying to read property ItemObject". Blueprint: FirstPersonCharacter Function: Spawn Item from Character FPBP Graph: SpawnItemFromCharacterFPBP Node: SpawnActor inside of the message log.
Here is the whole message log:

When using break points and shtuff to figure out where things are going wrong. I can see (in the block code below) that I am actually getting the item that I am dropping just fine in the Inventory widget when casting to BP_Item_Object.
Inventory_Widget Drop Function Override:

My only issue is when I go to the custom event inside of the first person character (shown below) , the Item Object variable is indeed returning “none”. So that’s my issue. Why is this returning none when something is clearly being inputted to this variable?
Custom Event Inside Character BP:

11 posts - 4 participants