Place a doodad
wc3_place_doodadPlace a doodad or destructible at specified (x,y) coordinates on a Warcraft III map. Uses a 4-character type code and saves the map.
Instructions
Add a doodad/destructable at (x,y). Type is a 4-char code, e.g. "LTlt" (a tree) or "ATtr" (a rock). Saves the map.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Absolute path to the .w3x/.w3m map file | |
| type | Yes | 4-char doodad/destructable code | |
| x | Yes | ||
| y | Yes | ||
| z | No | ||
| angle | No | Facing in degrees; default 270 | |
| scale | No | ||
| variation | No | ||
| life | No | Life as a percent; default 100 | |
| outPath | No | Output map path. Defaults to "<map>.edited.<ext>" beside the source; pass the source path to overwrite in place. |