User Tools

Site Tools


damage_entity

This is an old revision of the document!


Damage Entity


Deals the specified amount of damage to an entity. The entity is killed/destroyed if its health is reduced to zero.

damage_entity(entity, damage_amount)
ArgumentDescriptionTypeRequired
entityEntity for which the rotation will be reset.EntityYes
damage_amountDuration of the rotation (in seconds).DecimalYes

Use the complementary Heal Entity function 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 the player character as they step onto hazardous tiles or open trapped chests.


Editor Node:

Visual Demo:

damage_entity.1499034206.txt.gz · Last modified: 2017/07/02 15:23 by justin