player.health

Description

Used to obtain or change a player's health.

Syntax

health: number;

Real World Example

const currentHealth = player.health;
player.health = 199; // Set to full health.
player.health = 99; // Kill the player.

results matching ""

    No results matching ""