Issue with struct breaking.

I am having an issue when trying to break a struct into its members.

image

I am trying get the 2 connections from a specific entry of the “Layouts” struct array.
These are set on beginplay, and here is how one of them look:


However during runtime the break node doesn’t reflect what it is supposed to:


As You can see the get node got the two items from index2 which clearly says pipe002 and pipe 013 BUT after it enters the break node it comes out as 011 and 013.

011 is part of a different index but not the chosen one and I can’t seem to work out why.

Any Ideas?

Save the value from Random to a variable, and then use its value.

P.S. It seems Epic overdid it with randomness for the “random” function :laughing:
I’ve lost count of how many times a similar question has been asked on the forum this week alone.

1 Like

THIS ^ ^ ^ ^

Create functions for meddling with structs. Especially if working with Get (a copy).

Get → promote to “local variable” → use local variable down the chain.

Never in a million years would i have thought it had to do with the random Integer :sweat_smile: thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.