Array Practice (Effect to Multiple Vectors)

I learned how to put vectors into an array. But now I want to apply a specific effect to any vector I add to that array. I can get the “Create Effect” to reference 0 OR 1 in my Array BUT not both at the same time. Right now my array is so small because I’m trying to figure this out before I add additional vectors into my array.

The question is…is there an easier way to apply an effect to ALL values in an array?

Hey, easier to see your code to understand what exactly you are doing and what is wrong or not.


More info about me and my game mods you can find here.

You can only empty a whole array or unload it by setting the array variable to 0, there is no way to apply something to all hold values at the same time with one action you either process on them one by one via index reference or value reference to return the index number, or iterate on them in a for or while loop which are shorter in coding syntax. The only way i would have in mind is to make a rule for each value in an array so they can be manipulated at the same time, but its very unhandy do you really need to affect them at the same timer rather than step by step?

1 Like

Do you actually want one effect on both positions (1 in total), or one effect on each of the positions (2 in total)? Because the last one is what ArcanaXXI explained and the first one is basically impossible (you can only dynamically swap between the positions).

1 Like