Garry's Mod Wiki

Entity:Health

number Entity:Health()

Description

Returns the health of the entity.

Returns

1 number
health

Example

Prints if the entity's health is at full or more.

print( Entity( 1 ):Health() >= Entity( 1 ):GetMaxHealth() )
Output: "true" entity's health is greater than or equal to their max health, or "false" otherwise.

Page Links


Special Pages


Wikis

?

Render Time: 59ms

DB GetPage 40
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 6