Spawing a Grid based on landscape.

So, back at home, here is an update:

GetZ function:

Blueprint with the function added:

Here are the results:

This one looks partially good, even tho it isn’t following the landscape deformation correctly.
626fa200f67b15ac0f90ddb5306d563328b2b24d.jpeg

This other one worked somewhat closer as well.
23912de9e0b6b84a19d1fd251a1fed859435e445.jpeg]

but whenever there’s a slightly bigger inclination, it doesn’t work:
da82e960b21e65f4a63375a7fcf94c90dea85fed.jpeg

Any ideas what I’m doing wrong?