Set new array from "spawn actor from class"

I want to set named “ActorToSpawn” array from my input.

I first resize this array by using my input of number of actors(Num Lamp in my blue print).

My intention is to use “spawn actor from class”, and spawn each actor using for loops( ex. if I want to make 8 actor

array, I iterate “spawn actor from class” using for loop 8 times), then by using “Set Array Elem”, I set each array

element to each actor. (ex. set ActorToSpawn[0] = first result of for loops, ActorToSpawn[7] = last result of for loops).

I’m really poor at ue4. I appreciate your helps. Below are my blueprints.
343862-343863-

Like this

343866-screenshot-1.jpg

or

343867-screenshot-2.jpg

You have to make the target array first with the correct type:

343868-screenshot-3.jpg

1 Like