This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
damage_entity [2017/07/03 12:27] – justin | damage_entity [2020/04/23 11:53] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Deals the specified amount of damage to an entity. The entity is killed/ | + | Deals the specified amount of damage to an [[entity]]. The [[entity]] is killed/ |
+ | ====Signature: | ||
<code python> | <code python> | ||
damage_entity(entity, | damage_entity(entity, | ||
Line 13: | Line 14: | ||
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | You can use the related [[Heal Entity]] function to restore health to an entity that has been previously damaged. | + | You can use the related [[Heal Entity]] function to restore health to an [[entity]] that has been previously damaged. |
</ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
damage_entity(player, | damage_entity(player, | ||
</ | </ |