This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| heal_entity [2017/07/03 12:44] – created justin | heal_entity [2021/04/21 18:31] (current) – justin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ---- | ---- | ||
| - | Deals the specified amount of damage | + | Restores |
| + | <WRAP center round info 100%> | ||
| + | As healing will have no effect on defeated [[character|characters]], | ||
| + | </ | ||
| + | |||
| + | ====Signature: | ||
| <code python> | <code python> | ||
| - | damage_entity(entity, | + | heal_entity(entity, |
| </ | </ | ||
| ^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
| - | |entity|Entity that will be damaged.|[[Entity]]|Yes| | + | |entity|[[Entity]] that will be healed.|[[Entity]]|Yes| |
| - | |damage_amount|Amount of damage | + | |heal_amount|Amount of health |
| - | + | ||
| - | <WRAP center round info 100%> | + | |
| - | You can use the related [[Heal Entity]] function to restore health to an entity that has been previously damaged. | + | |
| - | </ | + | |
| ====Example: | ====Example: | ||
| - | < | + | < |
| - | damage_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 |
| </ | </ | ||
| Line 31: | Line 32: | ||
| <WRAP half column> | <WRAP half column> | ||
| ====Editor Node:==== | ====Editor Node:==== | ||
| - | {{:wiki:damage_entity_node.png? | + | {{:wiki:heal_entity_node.png? |
| </ | </ | ||
| <WRAP half column> | <WRAP half column> | ||
| ====Visual Demo:==== | ====Visual Demo:==== | ||
| - | {{:wiki:damage_entity_demo.gif? | + | {{:wiki:heal_entity_demo.gif? |
| </ | </ | ||
| </ | </ | ||