# Get Custom Procedural Blueprint To Follow Landscape

**URL:** <https://forums.unrealengine.com/t/get-custom-procedural-blueprint-to-follow-landscape/415965>\
**Category:** World Creation\
**Tags:** unreal-engine, follow, construction-script, Landscape, procedural, question, Blueprint\
**Created:** [January 30, 2018, 10:46pm UTC](https://forums.unrealengine.com/t/get-custom-procedural-blueprint-to-follow-landscape/415965 "2018-01-30T22:46:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![four2nothin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@four2nothin](https://forums.unrealengine.com/u/four2nothin)\
**Post date:** [January 30, 2018, 10:46pm UTC](https://forums.unrealengine.com/t/get-custom-procedural-blueprint-to-follow-landscape/415965/1 "2018-01-30T22:46:10Z")

</div>

I’m trying to replicate the Procedural Foliage spawner with an actor bp rather than foliage. So far, all is well, only the object is not following the landscape… THey randomly float above ground. Below is the construction script.

Basically, I’d like to achieve EXACTLY what the foliage spawner does with my own bp.

Thanks!

 ![228863-procedural-gathering-bp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/b/34b6e01606b0fc3732764dc3392dc532a7a004dd.png)

---

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [January 31, 2018, 6:21am UTC](https://forums.unrealengine.com/t/get-custom-procedural-blueprint-to-follow-landscape/415965/2 "2018-01-31T06:21:33Z")

</div>

First of all you need to use Hierarhical Static Mesh Component and use AddInstance in it to add meshes.

To make this meshes align to the ground you should use LineTrace function to get ground-projected locations.
