— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
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.
rotate_player_to_direction(direction)
Argument | Description | Type | Required |
---|---|---|---|
direction | Cardinal direction for the player to face towards. | Constant | Yes |
Lock/Unlock Player Movement must be called before using this function to prevent the player from interfering with the scripted movement.
rotate_player_to_direction(NORTH)
Results:
Use the Rotate Player To Direction function to force the player's view towards a particular area of the map during a cutscene.