Give Units to Player
Hands the number of units of the type in the location from one player to another.
Action 48 · Give Units to Player(From, To, Unit, Count, Location);
| Argument | Takes | Stored in the action |
|---|---|---|
| From | a player or group | bytes 16–19 |
| To | a player or group | bytes 20–23 |
| 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 |
Give Units to Player("Player 12", "Current Player", "Any unit", All, "Rescue");