I've seen someone use some function to determine the terraintype at some point but i can't seem to find it anymore. It was something like
local pos = { x = pX, y = pY }
local alt = land.getHeight(pos)
local terrainType = someFunction(pX,pY,alt)
Does anyone know how to check for the terraintype at a certain position?
Thanks.