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.