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
entityDescription.EntityYes
target_entityDescription.EntityYes
also_rotate_targetDescription.BooleanYes
durationDescription.DecimalYes

Example:

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

Results:

Use the Rotate Entity Towards function to …


Editor Node:

Visual Demo:

rotate_entity_towards.1494278295.txt.gz · Last modified: 2017/05/08 14:18 by justin