Garry's Mod Wiki
Description
Sets the health of the entity.
You may want to take Entity:GetMaxHealth into account when calculating what to set health to, in case a gamemode has a different max health than 100.
In some cases, setting health only serverside can cause hitches in movement, for example if something is modifying the player speed based on health.
To solve this issue, it is better to set it shared in a predicted hook.
In some cases, setting health only serverside can cause hitches in movement, for example if something is modifying the player speed based on health.
To solve this issue, it is better to set it shared in a predicted hook.
Arguments
Example
Sets the entity's health to their maximum health.
Output: The entity's health is now full.
Example
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...