Create Unit with Properties
As Create Unit, and the new units take the properties of one of the map's
64 unit properties slots: hit points, shields and energy as percentages, resources,
hangar count, and states such as cloaked, burrowed, lifted or hallucinated. The slots are
stored in the map's UPRP section; the editor's Triggers ▸ Unit Properties Slots edits
them.
Action 11 · Create Unit with Properties(Player, Unit, Count, Location, Properties);
| Argument | Takes | Stored in the action |
|---|---|---|
| Player | a player or group | bytes 16–19 |
| Unit | a unit type, or one of the unit classes | bytes 24–25 |
| Count | a number of units, 1 to 255, or All (stored as 0) | byte 27 |
| Location | a location (Anywhere is location 64) | bytes 0–3 |
| Properties | a unit properties slot | bytes 20–23 |
Create Unit with Properties("Player 8", "Zerg Hydralisk", 4, "Spawn", 1);