How can I change a location of multiple objects with a loop?

Hey, I am a beginner when it comes to working in Unreal Engine 4. I can’t seem to figure out how could I increment a value within a loop. I have an array of objects which are popping out of the ground when stepping on a trigger. They do pop out of the ground but are all overlapping. So, how could I change their relative position with a loop? I only need to move them to the side.

(Say that element 0 has position 0,0,0 and element 1 would have position 0,5,0 etc.)

Thank you for the help!

What about:

an array of objects which are popping
out of the ground when stepping on a
trigger

I’ll just add that it is often easier and more efficient to attach all those elements to another dummy scene component and then move said component instead.

May not be applicable, though. Depends on the context. Sounds like a trap full of spikes.

To increase a value using a loop you can use the “array index” and a multiplier OR set a variable with each loop.

This did exactly what I wanted, thank you!

U can usa interp to! It take the input value and slowy decreases it by one at the time / deltaspeed, and you can stop it when u want