Blueprints Can't Break Structure

For some reason I can’t break certain structures I’ve made in my game. I could before, but not anymore. The structure’s members are valid, I know you drag off a structure and type break and create a break node. I just don’t know what’s wrong.

Are the types from your variable and data table correct?
Can you split pin on the node?

Perhaps you’ve updated the struct and the DataTable node is stale / dirty. Right click it and Refresh, try again. Restarting the editor would also sort it out in this case.

I can’t break certain structures from a data table either.

1 Like

I’ve played around with it for a while, tried restarting the editor, creating the slots etc.

Pretty sure it’s something to do with having arrays inside your struct.
Whenever i have to have an array of arrays I tend to make a struct dedicated to holding that array alone, because I usually have to get the index of the struct array holding the array I want to break in order for the break node to show up.

Can’t figure out how to add pics in a comment so am doing this.
Take a look at the commented screenshot attached.

Note the “Container Inventory” variable (found in the “ContainerInventories” struct, see images) name may be a little misleading in this context as it represents an array of game items (i.e. can, gun, bat, etc.) and is not related to the “ContainerInventories” struct that exists in an array of that struct called “Picked Up Container Inventories” at the given index.

I’m having a little trouble articulating the way it works/conveying the idea. If none of this makes sense maybe please let me know which part and i’ll try elaborate.

I probably should’ve named the variables and stuff in a less confusing way (didn’t think i’d be using it to illustrate anything ever :slight_smile: ), the “ContainerInventories” struct holds the “Container Inventory” struct variable array.

“Container Inventory” is an array of a struct called “Items”, which is an array of variables (items in this case is the information about the item i.e. durability, icon etc. (not really relevant as could be any struct that doesn’t contain further arrays)).

“ContainerInventories” is a struct that only holds the “Container Inventory” variable array (the array that holds the Struct called “Items”

The “ContainerInventories” struct is then set as an Array Variable called “Picked Up Container Inventories” in the Blueprint.

“Picked Up Container Inventories” in this example is essentially the overall container that allows the arrays being held in structs to be accessed in the array as any other normal variable. Which ever struct array you want to access can now be accessed by dragging off a “Get” node, and the “Break ContainerInventories(OrWhateverYouWantHere)” node will make an appearance. (see picture attached)

Apologies if this is horribly confusing, I may have confused myself again in writing it ;).

Hope this is relevant or helpful in some way.
alt text