spawn_unit
Spawn a unit in DCS World at specified coordinates. Supports DCS, lat/lon, or MGRS inputs for precise placement.
Instructions
Spawn a new unit in the mission at specified coordinates. Can use DCS coordinates (x, z) OR real-world coordinates (latitude/longitude or MGRS).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Unit type (e.g., 'M-1 Abrams', 'T-72B', 'F-16C_50') | |
| name | Yes | Name for the spawned unit | |
| coalition | Yes | Coalition for the unit. Determines default country if 'country' is not specified. | |
| country | No | Specific country for the unit (overrides coalition default). Use CJTF_BLUE or CJTF_RED for combined joint task forces. | |
| x | No | DCS X coordinate (meters). Use this OR lat/lon/mgrs. | |
| z | No | DCS Z coordinate (meters). Use this OR lat/lon/mgrs. | |
| latitude | No | Latitude in decimal degrees. Use with longitude instead of x/z. | |
| longitude | No | Longitude in decimal degrees. Use with latitude instead of x/z. | |
| mgrs | No | MGRS coordinate string (e.g., '38TMK1234567890'). Use instead of x/z or lat/lon. | |
| heading | No | Heading in degrees (0-360) |