User Tools

Site Tools


damage_entity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
damage_entity [2017/07/03 12:27] justindamage_entity [2020/04/23 11:56] justin
Line 2: Line 2:
 ---- ----
  
-Deals the specified amount of damage to an entity. The entity is killed/destroyed if its health is reduced to zero.+Deals the specified amount of damage to an [[entity]]. The [[entity]] is killed/destroyed if its health is reduced to zero.
  
 +====Signature:====
 <code python> <code python>
 damage_entity(entity, damage_amount) damage_entity(entity, damage_amount)
Line 9: Line 10:
  
 ^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 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.
 </WRAP> </WRAP>
  
 ====Example:==== ====Example:====
-<code python>+<code bauxite>
 damage_entity(player, 2) damage_entity(player, 2)
 </code> </code>
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 character as they step onto hazardous tiles or open trapped chests.+Use the **Damage Entity** function to inflict damage upon [[character|characters]] as they step onto hazardous [[tile|tiles]] or open trapped chests.
 </WRAP> </WRAP>
  
damage_entity.txt · Last modified: 2021/04/21 18:58 by justin