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.

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

Example:

damage_entity(player, 2)

Results: The entity with an ID of “dungeon_slime” is rotated to face its original direction (north, south, west, or east) over a duration of 0.5 seconds.

Use the Reset Entity Rotation function to reset the player character or an NPC back to the direction they were facing prior to a cutscene, in particular when they were manually rotated to look at an object or another character.


Editor Node:

Visual Demo:

damage_entity.1499007401.txt.gz · Last modified: 2017/07/02 07:56 by justin