Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...