Returns the amount of damage the specified player has.
Argument | Type | Description |
---|---|---|
player | :real | ID of the player to get the damage of |
Example, called from update.gml:
// this character has higher gravity when over 100%:
if (get_player_damage( player ) >= 100) {
gravity_speed = 1.0;
} else {
gravity_speed = 0.5;
}