Spawn multiple actors through one node

I want to add a drop all function to my inventory and I’ve created majority of the function, the only thing that’s left for me to do is to get it so that when you click the drop all button, it spawns the specific amount of actors. I want to do this through one node for multiple reasons, but I’m not sure how this is done. I’ve researched and have found nothing that could help me.

Here’s a picture of my blueprint set up for dropping:

If anyone’s able to help me, I’d really appreciate it! Thanks!

Edit: I apologize for the messy graph.

You are looking for the FOR Loop.

Thanks for the response! Would you mind informing me on how to use this in my situation? I’ve set it up to what I believe would be the correct use for it, but it didn’t work. I’ve never used a ForLoop before, so I don’t know how they work.

Here’s how I set it up:

Thanks!

The For Loop executes the code as often as you specify (First Index and Last Index)
First index is often 0 and last index is (Amount -1 )

Your amount is probably specified in your inventory.

I’m still unable to figure this out. Would you mind telling me what to plug in?

Here’s my current set up:

Remove the Connection between Completed and the Spawn Actor Node.
Remove the Connection between Add Materials and Output.
Add a Connection between Completed and Output.

As I said the Loop executes the “Loop Body” exactly N times, When the loop is done, it executes “Completed”.

I’ve done as you said, and it still only spawns one actor. Any ideas as to why this is?

Make sure your Spawn Collision Handling setup properly.

I changed it to each setting and nothing changed. Any other ideas?