# How to Spawn Actors as walls along a Spline

**URL:** <https://forums.unrealengine.com/t/how-to-spawn-actors-as-walls-along-a-spline/2346561>\
**Category:** Programming & Scripting\
**Tags:** actor, unreal-engine, Spline, Blueprint, question\
**Created:** [February 20, 2025, 12:51pm UTC](https://forums.unrealengine.com/t/how-to-spawn-actors-as-walls-along-a-spline/2346561 "2025-02-20T12:51:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lonestanding27](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lonestanding27/32/627066_2.png) [@Lonestanding27](https://forums.unrealengine.com/u/Lonestanding27)\
**Post date:** [February 20, 2025, 12:51pm UTC](https://forums.unrealengine.com/t/how-to-spawn-actors-as-walls-along-a-spline/2346561/1 "2025-02-20T12:51:56Z")

</div>

Ok I made a Building Actor for a RTS Tool I am making. And I wanted to make a Wall System. Now I know I could just get a Spline Mesh Component Node and have them be that. But I wanted to make the Walls one of the Building Actors and destructible, like one of the other types of Buildings. Is it possible to spawn Building Actors and get them to follow the Spline so you can construct walls and make them were they can be destroyed and recognized as a Building type?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 20, 2025, 1:02pm UTC](https://forums.unrealengine.com/t/how-to-spawn-actors-as-walls-along-a-spline/2346561/2 "2025-02-20T13:02:27Z")

</div>

You can distribute _anything_ along a spline, sure. The crux is in the deformation - if you wanted _curved_ wall segments that connect smoothly, you’d need a spline mesh component.

---

<div class="post-metadata">

**Author:** ![Lonestanding27](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lonestanding27/32/627066_2.png) [@Lonestanding27](https://forums.unrealengine.com/u/Lonestanding27)\
**Post date:** [February 20, 2025, 1:21pm UTC](https://forums.unrealengine.com/t/how-to-spawn-actors-as-walls-along-a-spline/2346561/3 "2025-02-20T13:21:01Z")

</div>

> [@Everynone](#):
>
> ong a spline, sure. The crux is in the deformation - if you wanted _curved_ wall segments that connect smoothly, you’d need a spline

Ok, Thank you, so I will have to make it where is not curved (Though I would have loved to make them do that), but you gave me direction, and I think I know what to do. Thank you.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 20, 2025, 1:27pm UTC](https://forums.unrealengine.com/t/how-to-spawn-actors-as-walls-along-a-spline/2346561/4 "2025-02-20T13:27:30Z")

</div>

Have a look at this thread:

> [@Curve a series of objects](https://forums.unrealengine.com/t/curve-a-series-of-objects/471428/10):
>
> Ah, I think I’m getting a better picture of this. I run this event in the Construction Script: Do note how the components are now added to a Static Mesh Component array so we can keep track of them. This allows me to preview the result in the world and manipulate the spline any way I need: [[Image from Gyazo]](https://gyazo.com/9c3d8a05cc689cd21f87fdf830c5f26f) The arrows are not aware they’re attached to a spline, they will not follow it. The Construction Scripts actually executes every frame and recreates everything from scr…

To clarify, the splines **can** be curved, and the actors / static meshes **will** follow orientation / location but will not deform.

- this is fine:

 ![Untitled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/a/58a46de6f085c6fc602c3e7021094726ba7b37b1.jpeg)

- but this will be tricky:

 ![circular-wooden-fence-set-3d-model-low-poly-max-obj-3b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/b/d5b0e0f67565d7544197ac06be451db172b7c98b.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 22, 2025, 1:28pm UTC](https://forums.unrealengine.com/t/how-to-spawn-actors-as-walls-along-a-spline/2346561/5 "2025-03-22T13:28:06Z")

</div>

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