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: 23ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 12
Render Body 0
Render Sidebar 6