Entity/GetMaxHealth

From Garry's Mod
Jump to: navigation, search
 Entity:GetMaxHealth( )

Contents

Description

Returns the max health that the entity was given. It can be set via Entity:SetMaxHealth.

Returns

number

Max health.

Examples

Example

Prints the maximum health set for player 1.

print( Entity( 1 ):GetMaxHealth() )

Output:

By default, 100.
Personal tools
Navigation