Personal tools

Lua/Server/Player/Functions/GetHealth

From JC2-MP Documentation

< Lua‎ | Server‎ | Player
Jump to: navigation, search

Returns    number
Prototype    Player:GetHealth()
Description    No description


Description

Returns the player's health, as a percentage of maximum health between 0 and 1. If the player's maximum health has been increased, such as by firing the "ply.armorpart.add" Game Event, 1 corresponds to the new maximum, not the default maximum.

See also