Modify placed unit(s)
wc3_modify_unitChange unit properties like position, ownership, scale, facing, type, hitpoints, and mana in a Warcraft III map. Output to a specified or automatically named file.
Instructions
Change fields on the unit(s) matched by select — move them, re-own them, rescale, re-face, swap type, or set HP/mana. Saves to outPath, or ".edited." beside the source (pass the source path to overwrite in place).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Absolute path to the source .w3x/.w3m map file | |
| select | Yes | Which unit(s) to target — provide at least one field; `type` can match many | |
| set | Yes | Fields to change on every matched unit | |
| outPath | No | Output map path. Defaults to "<map>.edited.<ext>". |