Spawn a number of Objects in a straight line
In the picture above you see a Red which indicates the straight line, the black dots where I want to spawn the objects of the same type, and the light brown circle which is the player. The point is I want to spawn 7 rocks in a straight line? Could you help me with this?
Another Image to show what I mean. As you can see in the image below taken from dota 2, earthshaker casted his first skill which is called Fissure, which spawned golden metals in front of him in a straight line.
asked Jan 23 '18 at 05:31 PM in Blueprint Scripting
Hey there, you can create dynamic static meshes by using the Add Static Mesh Component function, you just need to offset it based on the width of the rocks and multiplied by the number of rocks you already placed multiplied by the forward vector, so:
After you place one rock, you increment the CurrentRockNumber so the next one will offset accordingly.
Follow this question
Once you sign in you will be able to subscribe for any updates here