Garry's Mod Wiki

Entity:GetMaxHealth

Description

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

Returns

1 number
Max health.

Example

Prints the maximum health set for player 1.

print( Entity( 1 ):GetMaxHealth() )
Output: By default, 100.

Page Links


Special Pages


Wikis

?

Render Time: 73ms

DB GetPage 9
Generate Html 3
SaveChanges 40
Render Body 0
Render Sidebar 19