User Tools

Site Tools


rotate_player_to_direction

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
rotate_player_to_direction [2017/05/08 16:38] justinrotate_player_to_direction [2021/04/21 18:48] (current) justin
Line 2: Line 2:
 ---- ----
  
-Rotates the player to face towards the specified cardinal direction (i.e. north, south, west, or east). This function will only have an effect while in first-person view.+Rotates the player to face towards the specified [[cardinal direction]] (i.e. north, south, west, or east).
  
 +====Signature:====
 <code python> <code python>
 rotate_player_to_direction(direction) rotate_player_to_direction(direction)
Line 9: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|direction|Cardinal direction for the player to face towards.|[[Constant]]|Yes|+|direction|[[Cardinal direction]] for the player to face towards.|[[Cardinal Direction]]|Yes|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
Line 16: Line 17:
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-rotate_player_to_direction(NORTH)+rotate_player_to_direction(SOUTH);
 </code> </code>
-//Results://+//Results:// Rotates the player until they are facing south.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
rotate_player_to_direction.1494286716.txt.gz · Last modified: 2017/05/08 16:38 by justin