Difference between revisions of "SetSittingRotation - Game"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>JustinOther
m (→‎Examples: Floatified arg)
 
(One intermediate revision by one other user not shown)
Line 19: Line 19:
<source lang="papyrus">
<source lang="papyrus">
; Look 90 degrees to the left
; Look 90 degrees to the left
Game.SetSittingRotation(-90)
Game.SetSittingRotation(-90.0)
</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]]

Latest revision as of 11:03, 8 October 2012

Member of: Game Script

Set the sitting offset for the players camera.

Syntax[edit | edit source]

Function SetSittingRotation(float afValue) native global

Parameters[edit | edit source]

  • afValue - Offset degrees from the normal camera angle.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

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

Notes[edit | edit source]

  • 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[edit | edit source]