export_landscape_heightmap
Export a landscape heightmap or vertex region to PNG or 16-bit .r16 to verify terrain import, true min/max heights, and unfilled areas.
Instructions
Dump the landscape heightmap (or a vertex sub-region) to a PNG or 16-bit .r16 file on disk -- THE oracle for any question about the whole terrain: whether an import really landed, where the real min/max heights are, whether a region is unfilled. Prefer it over sampling points with get_landscape_height_at when the question covers the whole surface: a handful of probes has repeatedly suggested flips and offsets that did not exist, while comparing the exported array against the source closes it in one step. An .r16 is exactly widthheight2 bytes, so a short file is itself a failure signal. Use get_landscape_height_at instead for a single world XY.
Returns: { landscape_actor_name: string, file_path: string, export_width: int, export_height: int, exported: bool, file_exists: bool, file_size: number, export_warning: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | Optional [minX, minY, maxX, maxY] vertex region, defaults to whole landscape | |
| file_path | Yes | Absolute filesystem path for the exported heightmap | |
| landscape_actor_name | No | Optional landscape actor name, defaults to first found |