Garry's Mod Wiki

Player:SetCurrentViewOffset

  Player:SetCurrentViewOffset( Vector viewOffset )

Description

Sets the actual view offset which equals the difference between the players actual position and their view when standing.

Do not confuse with Player:SetViewOffset and Player:SetViewOffsetDucked

Arguments

1 Vector viewOffset
The new view offset.