Add a camera
wc3_add_cameraAdd a camera to a Warcraft III map at specified coordinates with optional settings. The camera becomes usable as gg_cam_ in JASS and saves the map.
Instructions
Add a predefined camera at target (x,y). Unspecified fields use World Editor defaults (distance 1650, aoa 304, fov 70, rotation 90). Usable from JASS as gg_cam_. Saves the map.
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": {
"mapPath": "<mapPath>",
"x": "<x>",
"y": "<y>"
},
"name": "wc3_add_camera"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Absolute path to the .w3x/.w3m map file | |
| x | Yes | ||
| y | Yes | ||
| name | No | ||
| rotation | No | ||
| aoa | No | Angle of attack (degrees) | |
| distance | No | ||
| fov | No | Field of view (degrees) | |
| offsetZ | No | ||
| roll | No | ||
| outPath | No | Output map path. Defaults to "<map>.edited.<ext>" beside the source; pass the source path to overwrite in place. |