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.
asked Oct 09 '18 at 09:58 AM in Blueprint Scripting
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 :) ), 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
Follow this question
Once you sign in you will be able to subscribe for any updates here