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

Session 0
DB GetPage 3
Generate Html 2
SaveChanges 10
Render Body 0
Render Sidebar 5