import_vehicle
Copies an existing single-body Stormworks vehicle into a new editable draft without changing the source, enabling part edits and saving under a different name.
Instructions
Copy an existing single-body vehicle (data version 3) into a new editable draft; the source file is never changed. Use it to modify a vehicle the player already has, then query_parts/edit_parts, preview_vehicle, and save_vehicle under a different name. Configured and wired parts are protected. Fails when the draft name exists, the vehicle has several bodies or it uses an older data version. Returns the part count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Vehicle file name without .xml in the player's vehicles folder (see list_game_vehicles); with source=workshop, the numeric Steam Workshop item ID. | |
| design | Yes | Name for the new draft; must not exist yet (see list_designs). | |
| source | No | "vehicles" (default) reads the player's vehicles folder; "workshop" reads an installed Workshop item by numeric ID. | vehicles |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |