======Damage Entity====== ---- Deals the specified amount of damage to an [[entity]]. The [[entity]] is killed/destroyed if its health is reduced to zero. ====Signature:==== damage_entity(entity, damage_amount) ^Argument^Description^Type^Required^ |entity|[[Entity]] that will be damaged.|[[Entity]]|Yes| |damage_amount|Amount of damage to deal.|[[Number]]|Yes| You can use the related [[Heal Entity]] function to restore health to an [[entity]] that has been previously damaged. ====Example:==== damage_entity(player, 2); //Results:// The player's health is reduced by 2. Use the **Damage Entity** function to inflict damage upon [[character|characters]] as they step onto hazardous [[tile|tiles]] or open trapped chests. ---- ====Editor Node:==== {{:wiki:damage_entity_node.png?nolink|}} ====Visual Demo:==== {{:wiki:damage_entity_demo.gif?nolink|}} ~~NOTOC~~