Entity.Health

From GMod Wiki

Revision as of 14:11, 13 September 2009 by UnrealomegaBot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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