health

abstract var health: Double

The player's health value.

Valid range is typically 0.0 to 20.0 (where 20.0 is full health). Setting health to 0.0 or below will kill the player.

Example:

player.edit {
health = 20.0 // Full health
}