Hey below are some screenshots , i am trying to add text to an array of text inside a character i am not able to add to the array resulkting in reading nothing when trying to pull from that array what am i missing?
In the first image, you are adding the text to a copy of the talent rooster’s item (I believe that’s what it says, hard to read due to low quality) which is immediately discarded in the next iteration. When you are looking for a get from the array pin, use the “get (a ref)”, not “get (a copy)”.
Also, you probably don’t want to loop through all the items in an array and every time add that new text right? If so, remove that For Each Loop with the comment “Not Reading”. Otherwise you would end up with something like this:
array = ["a", "b", "c"]
input text = "d"
result -> ["a", "b", "c", "d", "d", "d"]
And for the other picture, although it’s not a problem per se, you are unnecessarily using the "get"s for the rooster and the texts. If you check how For Each Loop works, you might notice, that there already is a “get (a copy)” and it’s passed as “Array Element” pin out, so you just can hook that up directly.
Wow didn’t notice it was a copy get its always something so simple also thanks for the suggestions with the extra gets i was under the impression the for each only got a copy which isn’t editable so i didn’t know if i could set a text but made all the changes you suggested and worked like a charm!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.