SetSittingRotation - Game

Revision as of 12:03, 8 October 2012 by imported>JustinOther (→‎Examples: Floatified arg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Game Script

Set the sitting offset for the players camera.

SyntaxEdit

Function SetSittingRotation(float afValue) native global

ParametersEdit

  • afValue - Offset degrees from the normal camera angle.

Return ValueEdit

None.

ExamplesEdit

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

NotesEdit

  • 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 AlsoEdit