Determine height of terrain on tallest mountain of the map?
Like the title says, I'd like to figure out inside a plugin the highest point on the map. Is possible? Didn't seem to find anything useful in existing plugins
Go to that place in the game and enter printpos into console. The height is the second number, I believe.
I mean without actually going there. From inside a plugin find the tallest mountain. I figure it is inside TerrainMeta or I would have to Raycast search. This is one-time operation of course during some kind of plugin bootup
You can do smth like this
TerrainTexturing.Instance.GetComponent<TerrainHeightMap>().GetHeight(normalizedX, normalizedZ);​
Check https://umod.org/plugins/rust-map-api for more info about how to work with that.
cygwin255
You can do smth like this
TerrainTexturing.Instance.GetComponent<TerrainHeightMap>().GetHeight(normalizedX, normalizedZ);​
Check https://umod.org/plugins/rust-map-api for more info about how to work with that.

I ended up doing something like this. Is OK?

float testHeight = TerrainMeta.HeightMap.GetHeight(new Vector3(x, 0, z));