— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
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)
damage_entity(player, 2)
Results: The player's health is reduced by 2.
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.