— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Restores the specified amount of health to an entity.
heal_entity(entity, heal_amount)
Argument | Description | Type | Required |
---|---|---|---|
entity | Entity that will be healed. | Entity | Yes |
heal_amount | Amount of health to restore. | Decimal | Yes |
You can use the related Damage Entity function to restore health to an entity that has been previously damaged.
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.