paint_landscape_layer
Paint terrain texture layers by writing a uniform weight into a landscape weightmap over a specified vertex region or the entire terrain, filling a rectangle.
Instructions
Paint terrain texture layers headless: write ONE uniform weight (0-255) into a landscape weightmap over a vertex region, or the whole terrain if you omit region. Blunt by design -- it fills a rectangle, it does not brush or blend, so build variety by painting several layers over different rectangles. The layer must already be registered with add_landscape_layer or nothing is stored. Region coordinates are VERTICES, not world units: get the ranges from get_landscape_info. Check vertices_painted and paint_warning rather than the success flag.
Returns: { landscape_actor_name: string, layer_info_path: string, layer_name: string, weight: int, painted: bool, vertices_painted: number, region: [int], paint_warning: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | Optional [minX, minY, maxX, maxY] vertex region, defaults to the whole landscape | |
| weight | No | 0 to 255 weight value, default 255 | |
| layer_info_path | Yes | Full path of the ULandscapeLayerInfoObject asset | |
| landscape_actor_name | No | Optional landscape actor name, defaults to first found |