UE4.27, Arrays, Loops, and Construction Scripts:
-
- How do I break down a "Data Table Row" Handle Array-variable (it’s not a Single row, but an array of 6 DT Row Handles),
- How do I break down a "Data Table Row" Handle Array-variable (it’s not a Single row, but an array of 6 DT Row Handles),
-
- So that each Handle (in the Array, there are 6), loops through code, in order from 0 to 5, (thus I am unsure if I need to use a For Each Loop, or with Break, or another cycle node?).
- Here is the DT that shows the Row Handle names:
- (I want to use an Array variable and not a single var, because I want to change sets of items at the same time. E.g. Set = 0 head armor, 1 Top armor, 2 leg armor…
So in the variable, I want to predefine which SK pieces to attribute to the head, Top, legs, boots.)
- (If I used a single variable for each armor part, then I have to copy/paste the same code many times, which makes it messy. I want to get it right because I will be using this code in other actors and Event tabs, to set 10 part sets. And I need to save time in how I set the vars.)
-
- And in the Construction script? (Warning if you test my code: You have to be careful with infinite-loop errors in the Construction tab, or else Engine locks and if the test asset was saved with Construct pin connected, the project is load-locked, unless you do a fix I found.)
.
- And in the Construction script? (Warning if you test my code: You have to be careful with infinite-loop errors in the Construction tab, or else Engine locks and if the test asset was saved with Construct pin connected, the project is load-locked, unless you do a fix I found.)
-
- If I use For Loops, am unsure what to connect as outpins [in the context of my DT Row Handle names] for the Array Element vs Array Index?
.
- If I use For Loops, am unsure what to connect as outpins [in the context of my DT Row Handle names] for the Array Element vs Array Index?
-
- I tried using a Map variable. But it is restrictive: I can only make 1 Key (not 6, or I have to make them in reverse), or I cant link the correct DT row handle? (I can only type in the Name (2nd column) of the Data Table row - which I dont want because I want to select the [item name] by using a dropbox, not have to type it in manually.)
Please help (and show pics), this has stalled me for days. Ty.