User Tools

Site Tools


reset_entity_rotation

This is an old revision of the document!


Reset Entity Rotation


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)
ArgumentDescriptionTypeRequired
entityEntity for which the rotation will be reset.EntityYes
durationDuration of the rotation (in seconds).DecimalYes

Example:

reset_entity_rotation(player, 1)

Results:

Use the Reset Entity Rotation function to …


Editor Node:

Visual Demo:

reset_entity_rotation.1493787940.txt.gz · Last modified: 2017/05/02 22:05 by justin