ExportTerrainData(terrain, file$)
Requires Extended mode.
Exports exact native 16-bit heights and holes to a new .b3height file. Finish any active BeginTerrainUpdate first. The file is reload-verified before publication and never replaces an existing destination. Returns 1 on success, or 0 with TerrainResourceError. This does not change a descriptor reference or refresh a physics collider.
See Terrain resources and samples/terrain-resources/TerrainResources.bb.