The setMaxHP native AI script function is used to set the maximum HP level of each bot in the current group.
()setMaxHP(MaxHP: f, SetFull: f)
()setMaxHP(50000, 1);
This example code sets the maximum HP of each bot in the group to 50000 and sets their current HP to the new maximum.
If a bot is not spawned, its maximum HP is not affected by this function.