Hello, I’m trying to make an inventory system using Blueprints but now I have to consult with the forums for help because I’m running into a problem I don’t understand. Also I’m new here and this is my first post. I don’t really know how best to ask this so I’m going to show what I’m doing with screenshots and eventually we will get to the actual question.
Anyway, what I’m trying to do is have multiple pickup types like weapons, armor, usables, etc. so I’m starting with a base pickup class and using child blueprints for the different types. I’m also using an actor component for my player inventory.
Ignore the enums they’re not being used yet except for PickupType.
The cube in the viewport is an armor pickup and the cone is a weapon pickup.
The base pickup is used for the actual picking up of a pickup.
Then the event in my player inventory adds the pickup to a base pickup reference array.
But for some reason the pickup’s variables don’t get saved in the array.
Like when I try doing a print string of the pickup names for all my held pickups but the names all return as none instead of what I named each pickup.
Could it be because the array is a base pickup when the item I’m adding is a child of that?
Anyway I would appreciate it if someone who knew what the problem is could help me out.