scmJS docs

Modify Unit Hit Points

Sets the hit points of the number of units of the type in the location to the percentage of their maximum.

Action 49 · Modify Unit Hit Points(Player, Unit, Percent, Count, Location);

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
Percent a percentage, 0 to 100 bytes 20–23
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
Modify Unit Hit Points("Player 8", "Men", 50, All, "Anywhere");