— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Resets the entity's rotation to its original cardinal direction over the specified duration (in seconds). This assumes that the entity was previously rotated using the “Rotate Entity Towards” function.
reset_entity_rotation(entity, duration)
reset_entity_rotation(player, 1)
Results: The player is rotated to face their original direction (north, south, west, or east) over a duration of one second.
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.