— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Rotates an entity to face towards another entity over the specified duration (in seconds). The target entity can optionally be rotated to face towards the first entity simultaneously.
rotate_entity_towards(entity, target_entity, also_rotate_target, duration)
rotate_entity_towards(player, entity["purple_slime"], true, 1)
Results: The player character is rotated to face towards the entity with an ID of “purple_slime” over a duration of one second. The second entity is also simultaneously rotated to face towards the player character.
Use the Rotate Entity Towards function to rotate characters towards each other as they speak during cutscenes or to have them look towards an object that is the focus of the conversation.