Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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. alt text

Product Version: UE 4.20
data-table.png (55.8 kB)
variable.png (207.1 kB)
structure.png (182.0 kB)
more ▼

asked Oct 09 '18 at 09:58 AM in Blueprint Scripting

avatar image

19 3 5 7

avatar image HarryHighDef Oct 09 '18 at 10:37 AM

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

avatar image Everynone Oct 09 '18 at 11:54 AM

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.

avatar image ThatsShocking Oct 09 '18 at 08:59 PM

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

avatar image ThatsShocking Oct 09 '18 at 08:58 PM

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

avatar image GrumpyNZ Oct 10 '18 at 12:38 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Oct 10 '18 at 01:04 PM

avatar image

71 4 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question