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.
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. |