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 (while not exceeding the maximum health value).

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

Example:

heal_entity(player, 5)

Results: Five health points are restored to the player.

Use the Heal Entity function to restore health to the player when a potion is used or when the player steps into a pool of water with healing capabilities.


Editor Node:

Visual Demo:

heal_entity.1499117941.txt.gz · Last modified: 2017/07/03 14:39 by justin