Get Custom Procedural Blueprint To Follow Landscape

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!

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.