User Tools

Site Tools


heal_entity

This is an old revision of the document!


Heal Entity


Restores the specified amount of health to an entity.

heal_entity(entity, heal_amount)
ArgumentDescriptionTypeRequired
entityEntity that will be healed.EntityYes
heal_amountAmount of health to restore.DecimalYes

You can use the related Damage Entity function to restore health to an entity that has been previously damaged.

Example:

heal_entity(player, 5)

Results: The player's health is reduced by 2.

Use the Damage Entity function to inflict damage upon the player character as they step onto hazardous tiles or open trapped chests.


Editor Node:

Visual Demo:

heal_entity.1499112806.txt.gz · Last modified: 2017/07/03 13:13 by justin