set_player_damage

Sets the amount of damage for the specified player.

ArgumentTypeDescription
player:realID of the player to set the damage of
value:realThe value to set

Example, called from attack_update.gml:

// fully heals your character at the end of window 2:
if (window == 2 && window_timer == 200) {
set_player_damage( player, 0 );
}