set_landscape_height_in_box
Raise or lower terrain by adding a Z delta to every heightmap vertex inside a world-space box. Use box_min/box_max or center/extent to define the region.
Instructions
Raise or lower terrain: add delta_z world units to every heightmap vertex inside a world-space box (give box_min/box_max, or center/extent). A RELATIVE edit -- to force a region to one absolute height use flatten_landscape_in_box, and to soften the seams afterwards use smooth_landscape_in_box. Check vertices_modified in the reply: a zero means the box missed the terrain, which is what a wrongly-signed world coordinate looks like.
Returns: { landscape_actor_name: string, delta_z: number, delta_steps: int, applied: bool, vertices_modified: int, region_width: int, region_height: int, region: [int] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| center | No | Optional [x, y, z] box center (alternative to box_min/box_max) | |
| extent | No | Optional [x, y, z] box half-extents (alternative to box_min/box_max) | |
| box_max | No | Optional [x, y, z] world-space box maximum | |
| box_min | No | Optional [x, y, z] world-space box minimum | |
| delta_z | No | World Z delta to apply to every vertex in the region | |
| landscape_actor_name | No | Optional landscape actor name, defaults to first found |