wt_add_unit
Adds a unit to a War Thunder CDK mission file using unit type, vehicle ID, loadout, coordinates, and optional properties; can set it as the player's wing.
Instructions
Add a unit (unit_type from wt_list_catalog('units'), e.g. armada=aircraft, tankModels=ground, ships...). unit_class is the vehicle id (e.g. 'p-39n'), weapons the loadout id (e.g. 'p_39_n_default'). props: extra values for the unit's props block (name->value; type inferred: bool/int/float/str). set_as_player makes it mission_settings.player.wing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"unit_type": "<unit_type>",
"name": "<name>",
"x": "<x>",
"y": "<y>",
"z": "<z>"
},
"name": "wt_add_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| z | Yes | ||
| army | No | ||
| name | Yes | ||
| path | Yes | ||
| count | No | ||
| props | No | ||
| weapons | No | ||
| unit_type | Yes | ||
| unit_class | No | ||
| heading_deg | No | ||
| set_as_player | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |