This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
heal_entity [2017/07/03 13:13] – justin | heal_entity [2017/07/03 14:39] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Restores the specified amount of health to an entity. | + | Restores the specified amount of health to an entity |
<code python> | <code python> | ||
Line 11: | Line 11: | ||
|entity|Entity that will be healed.|[[Entity]]|Yes| | |entity|Entity that will be healed.|[[Entity]]|Yes| | ||
|heal_amount|Amount of health to restore.|[[Decimal]]|Yes| | |heal_amount|Amount of health to restore.|[[Decimal]]|Yes| | ||
- | |||
- | <WRAP center round info 100%> | ||
- | You can use the related [[Damage Entity]] function to restore health to an entity that has been previously damaged. | ||
- | </ | ||
====Example: | ====Example: | ||
Line 20: | Line 16: | ||
heal_entity(player, | heal_entity(player, | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Damage | + | Use the **Heal Entity** function to restore health to the player |
</ | </ | ||