health()
Used to obtain or change a player's health.
Ranges from 100 - 199
Function Definition
ts
public health: number;
Returns
- number
Documentation
Examples
ts
const currentHealth = player.health;
player.health = 199; // Set to full health.
player.health = 99; // Kill the player.