User Tools

Site Tools


reset_entity_rotation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
reset_entity_rotation [2017/05/05 16:07] justinreset_entity_rotation [2018/03/16 09:47] justin
Line 4: Line 4:
 Resets the entity's rotation to its original cardinal direction (north, south, west, or east) over the specified duration (in seconds). Resets the entity's rotation to its original cardinal direction (north, south, west, or east) over the specified duration (in seconds).
  
 +====Signature:====
 <code python> <code python>
 reset_entity_rotation(entity, duration) reset_entity_rotation(entity, duration)
Line 18: Line 19:
 ====Example:==== ====Example:====
 <code python> <code python>
-reset_entity_rotation(player1)+reset_entity_rotation(entity["dungeon_slime"]0.5)
 </code> </code>
-//Results:// The player is rotated to face their original direction (north, south, west, or east) over a duration of one second.+//Results:// The entity with an ID of "dungeon_slime" is rotated to face its original direction (north, south, west, or east) over a duration of 0.5 seconds.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
reset_entity_rotation.txt · Last modified: 2021/04/21 18:43 by justin