SetHealth

From The KillerJim Mod Wiki

PlayerProxy::SetHealth

SetHealth.png

Server Only Function - This is an function executes only on the server.

Description

This function allows you to set the player health. Players have both armor and health and during any impacts the armor is depleted first before health is taken - (see How damage is applied for information on how).

If you supply zero or a negative value the player is automatically killed.

Arguments
1 Float Health
The value to set the health to, this can be negative.

Playing

Developers

Developer Reference