add_landscape_spline_control_point
Adds a control point to a landscape spline so you can start laying a road, riverbed, or path across terrain; use landscape-local coordinates for correct placement.
Instructions
Add a control point to a landscape's spline component -- the first half of laying a road, river bed or path across the terrain (connect consecutive points with add_landscape_spline_segment). Coordinates are LANDSCAPE-LOCAL, not world: subtract the landscape's location (get_landscape_info) before passing them, or the point lands somewhere else entirely. width is a HALF-width. The reply's control_point_index is what the segment and edit tools address.
Returns: { landscape_name: string, control_point_index: int, control_point_count: int, width: number, added: bool, location: [number] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Half-width at this point, default 128 | |
| location | No | [x, y, z] in landscape-local space, default [0,0,0] | |
| landscape_name | No | Optional landscape actor name, defaults to first found |