Skip to content
On this page

isDead()

Returns true if the player is dead.

Function Definition

ts
public readonly isDead: boolean;

Returns

  • boolean

Documentation

Examples

ts
if (player.isDead) {
    console.log(`They are dead!`);
} else {
    console.log(`They are not dead!`);
}

Documentation Created with ❤️ by Stuyk