User Tools

Site Tools


rotate_entity_towards

This is an old revision of the document!


Rotate Entity Towards


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)
ArgumentDescriptionTypeRequired
entityEntity to rotate.EntityYes
target_entityTarget entity to rotate the first entity towards.EntityYes
also_rotate_target.BooleanYes
durationDuration of the rotation (in seconds).DecimalYes

Example:

rotate_entity_towards(player, entity["character_id"], true, 1)

Results: The player character is rotated to face towards the entity with an ID of “character_id” 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 …


Editor Node:

Visual Demo:

rotate_entity_towards.1494281679.txt.gz · Last modified: 2017/05/08 15:14 by justin