# 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:** 1\
**Showing post:** 2

<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.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-make-a-waterbodyriver-from-the-water-plugin-follow-a-spline-generated-with-pcg/1492210)._
