This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rotate_player_to_direction [2018/03/16 09:47] – justin | rotate_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 |
| ====Signature: | ====Signature: | ||
| Line 10: | Line 10: | ||
| ^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
| - | |direction|Cardinal direction for the player to face towards.|[[Cardinal Direction]]|Yes| | + | |direction|[[Cardinal direction]] for the player to face towards.|[[Cardinal Direction]]|Yes| |
| <WRAP center round info 100%> | <WRAP center round info 100%> | ||
| Line 17: | Line 17: | ||
| ====Example: | ====Example: | ||
| - | < | + | < |
| - | rotate_player_to_direction(SOUTH) | + | rotate_player_to_direction(SOUTH); |
| </ | </ | ||
| - | // | + | // |
| <WRAP center round tip 100%> | <WRAP center round tip 100%> | ||