local x, y, z = 100.0, -200.0, 50.0
local success, groundZ, normal = GetGroundZAndNormalFor_3dCoord(x, y, z)
if success then
print("Ground Z found at: ", groundZ)
print("Surface normal is: ", normal.x, normal.y, normal.z)
else
print("No ground found.")
end