Difference between revisions of "SetSittingRotation - Game"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>Chesko
(Added note)
Line 21: Line 21:
Game.SetSittingRotation(-90)
Game.SetSittingRotation(-90)
</source>
</source>
== Notes ==
* Only works in first-person camera mode. If the player is in the third-person camera mode, the camera will not move when this function is called.


== See Also ==
== See Also ==
*[[Game Script]]
*[[Game Script]]

Revision as of 08:13, 5 October 2012

Member of: Game Script

Set the sitting offset for the players camera.

Syntax

Function SetSittingRotation(float afValue) native global

Parameters

  • afValue - Offset degrees from the normal camera angle.

Return Value

None.

Examples

; Look 90 degrees to the left
Game.SetSittingRotation(-90)

Notes

  • Only works in first-person camera mode. If the player is in the third-person camera mode, the camera will not move when this function is called.

See Also