Entity.Health

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:Health( )
Description:
Gets the current health of an entity.
Returns: Integer health
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.Health]Entity.Health [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionGets the health of the entity.
Used onNewerShared.png
Code
// iEnt is an entity object
local iHealth = iEnt:Health( )
OutputThe health of the entity


Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox