This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
heal_entity [2017/07/03 14:34] – justin | heal_entity [2020/04/22 17:37] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Restores the specified amount of health to an entity (while not exceeding | + | Restores the specified amount of health to an [[entity]] (while not exceeding |
+ | <WRAP center round info 100%> | ||
+ | As healing will have no effect on defeated [[character|characters]], | ||
+ | </ | ||
+ | |||
+ | ====Signature: | ||
<code python> | <code python> | ||
heal_entity(entity, | heal_entity(entity, | ||
Line 9: | Line 14: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |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.|[[Number]]|Yes| |
====Example: | ====Example: | ||
- | < | + | < |
heal_entity(player, | heal_entity(player, | ||
</ | </ | ||
Line 19: | Line 24: | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Heal Entity** function to restore health to the player when a potion is used or when the player steps into a pool with healing capabilities. | + | Use the **Heal Entity** function to restore health to the player when a potion is used or when the player steps into a pool of water with healing capabilities. |
</ | </ | ||