Player GetLifeInfo

Returns object with character's current and maximum health
;Usage
{Health, MaxHealth} = Player.GetLifeInfo()
;Return Values
Value 	Type 	Description
Health 	number	current health
MaxHealth	number	maximum health
;Examples:
<nowiki>
function health_critical()
	local life_info = Player.GetLifeInfo()
	if (life_info["Health"]/life_info["MaxHealth"]) <= 0.25 )
		return true;
	else
		return false;
	end
end
</nowiki>
Category:Addon_API