After trying some things it is clear that I can’t handle arrays in the construction script the right way.
I have an issue with filling arrays in the construction script the right way
- If I don’t clear the array at the beginning, its full of old instances
- If I clear the array, I cant change its elements as it is called constantly
- tried adding branches to take control with no success
latest try was the following:
- fill vector array via construction script which is cleared at the start
- pass the data into a struct array containing
- vector
- boolean isMesh1
- boolean isMesh2
I want to use the boolean to define which meshes I want to spawn.
clearing the struct array at start doesnt help as I can’t change the boolean (as clearing is being called all the time). adding a branch didnt help, as changing the boolean added an item to the array instead of changing the input.
any idea how to do this the proper way?
cheers
mimi