set_landscape_spline_control_point
Move, rotate, or set the half-width of a landscape spline control point by index to adjust roads or rivers without rebuilding the spline. Only provided fields change in landscape-local space.
Instructions
Move, rotate or re-width one existing landscape spline control point by index -- how you adjust a road or river route without rebuilding the spline. Only the fields you pass change (applied_count reports how many landed). Location is LANDSCAPE-LOCAL, not world, and width is a HALF-width. Read the current values first with get_landscape_spline_control_point.
Returns: { landscape_name: string, control_point_index: int, control_point_count: int, applied_count: int, location: [number], rotation: [number], width: number, updated: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Optional half-width at this point; only applied if provided | |
| location | No | Optional [x, y, z] in landscape-local space; only applied if provided | |
| rotation | No | PREFERRED: the OBJECT {"roll":R,"pitch":P,"yaw":Y} (any subset, absent axes are 0). The ARRAY form below is [pitch, yaw, roll] -- its index 2 is ROLL, NOT yaw, which once put a PlayerStart on its side. Optional [pitch, yaw, roll]; only applied if provided | |
| landscape_name | No | Optional landscape actor name, defaults to first found | |
| control_point_index | Yes | Index into the splines component's ControlPoints |