How do I make as many objects spawn as are transmitted from another bluprint?

Hi! can you help me? I wanted the player to specify the number of objects and they will spawn. I found how to make a span of vows. but there was a problem. I do not know how to make them spawn exactly the amount that the player indicated. 1 and 2 screenshots are how I implemented the spawn of objects. I hope you can tell me how to do it right.
And another small problem in the 3rd screenshot. for some reason, the second and third layers of the isi Z are not spawned, but only in one row. I will be glad if you tell me what I did wrong.



This might be simpler. There is a macro that does a grid


You might just need to adjust the starting offset if you don’t want it to start from the center.

1 Like

Thank you for telling me how to simplify it. And how do I transfer the required number of objects to be created here?

Thank you for telling me how to simplify it. how do I transfer the required number of objects to be created here?


I moved the max amount of spawns to the function input
You can also move the sizeX and sizeY to the input pins of the function if you need to change it.

Just drag the X and Y of the grid func to the red function Spawn near the max Amount and it will connect.

Version with line trace

Just turn off the debug of the line trace :wink:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.