Player paper/player_set_health

Set Player Health

Sets a player's health to a specific value.

Note: Value is clamped between 0 and the player's max health. Setting to 0 kills the player.

Inputs

NameTypeOptionalDescription
exec exec Incoming execution.
player player The player.
health number New health value.

Outputs

NameTypeDescription
exec exec Continues after setting.

Properties

KeyTypeDefaultDescription
health number 20 Health