# How to make a WaterBodyRiver from the Water Plugin follow a Spline generated with PCG?

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-waterbodyriver-from-the-water-plugin-follow-a-spline-generated-with-pcg/1492210>\
**Category:** World Creation\
**Tags:** unreal-engine, question\
**Created:** [December 6, 2023, 6:09am UTC](https://forums.unrealengine.com/t/how-to-make-a-waterbodyriver-from-the-water-plugin-follow-a-spline-generated-with-pcg/1492210 "2023-12-06T06:09:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CurlyWTF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CurlyWTF](https://forums.unrealengine.com/u/CurlyWTF)\
**Post date:** [December 6, 2023, 6:09am UTC](https://forums.unrealengine.com/t/how-to-make-a-waterbodyriver-from-the-water-plugin-follow-a-spline-generated-with-pcg/1492210/1 "2023-12-06T06:09:35Z")

</div>

I’m still fairly new and I’m trying to place a River from the Water Plugin along a spline that I have generated from a texture using PCG.  
Any help would be greatly appreciated, I’ll add some screenshots to better explain my question.

Thanks.

 ![RiverSpline.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/9/169aa9ae27b72ee63c3971897417c38d3083cede.jpeg)  
 ![WantedSpline.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/c/77c2d7b8fc59ccfbe655e83139a24dfb8b4573a3.jpeg)  
 ![PCGSpline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/f/f7f8351b53e8e11e4ec7cff5b62f9d655fbdc835.png)

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [December 6, 2023, 8:02am UTC](https://forums.unrealengine.com/t/how-to-make-a-waterbodyriver-from-the-water-plugin-follow-a-spline-generated-with-pcg/1492210/2 "2023-12-06T08:02:03Z")

</div>

Hey there @CurlyWTF! Welcome to the community! So my recommendation would be to make an editor utility that copies the spline points into an array, wipes them out of the target spline and sets them again. Since spline points are structs you should be able to get their info directly. Here’s two threads that can point you in the right direction:

> [@Get All Spline Points of a Spline Component?! (Blueprint Only)](https://forums.unrealengine.com/t/get-all-spline-points-of-a-spline-component-blueprint-only/410487):
>
> Hi Guys, i try to find a BP node that can give me an array of all spline points that define a spline. How can i achieve that BP only? Shouldnt there be a node for that? Thanks and cheers [raidfire.net](http://raidfire.net)

> [@How to copy Spline Component points?](https://forums.unrealengine.com/t/how-to-copy-spline-component-points/404452):
>
> Hello guys! Can anybody share decision: how to copy/clone/duplicate spline component points? If I do something like this: [213305-снимок.png] It set pointer (reference) from “ForwardSpline” to the SplineComponent of my “SpawnedActor”. Spline Component has no methods like: get(copy) or clone object. Also: I can’t call function like: GetSplinePoints, but UE4 has method SetSplinePoints (why?). I can’t get array of Spline points. So I have no idea, how to copy Spline Component points.

---

<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:** [January 5, 2024, 8:02am UTC](https://forums.unrealengine.com/t/how-to-make-a-waterbodyriver-from-the-water-plugin-follow-a-spline-generated-with-pcg/1492210/3 "2024-01-05T08:02:31Z")

</div>

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