Read placed units & doodads
wc3_read_placementsRead preplaced units, items, doodads, and destructables from a Warcraft 3 map file. Returns their type code, position, angle, and owner.
Instructions
Read what is placed on the map in the World Editor: preplaced units/items (war3mapUnits.doo) and doodads/destructables (war3map.doo). Returns { units: [...], doodads: [...] } with type code, position, angle, owner, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Absolute path to the .w3x/.w3m map file |