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/02 15:30] – justin | damage_entity [2020/04/23 11:54] – 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 10: | Line 11: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
|entity|Entity that will be damaged.|[[Entity]]|Yes| | |entity|Entity that will be damaged.|[[Entity]]|Yes| | ||
- | |damage_amount|Amount of damage to deal.|[[Decimal]]|Yes| | + | |damage_amount|Amount of damage to deal.|[[Number]]|Yes| |
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | You can use the corresponding | + | You can use the related |
</ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
damage_entity(player, | damage_entity(player, | ||
</ | </ | ||
Line 23: | Line 24: | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Damage Entity** function to inflict damage upon the player | + | Use the **Damage Entity** function to inflict damage upon [[character|characters]] |
</ | </ | ||