Entity.SetMaxHealth
From GMod Wiki
| Function | |
| Syntax | Entity:SetMaxHealth( Number int ) |
| Description: | |
| Sets the maximum health of an entity. | |
| Returns: | nil |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetMaxHealth]Entity.SetMaxHealth [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Does not appear to work in clientside scripts.
- This also changes the maximum health the C++ hl2 items can heal you to.
- The value of a players maximum health can be read with Entity.GetMaxHealth