Garry's Mod Wiki

Player:GetCurrentViewOffset

  Vector Player:GetCurrentViewOffset()

Description

Gets the current applied view offset, which transitions between the player's standing and ducked view offset depending on their duck state.

Do not confuse with Player:GetViewOffset and Player:GetViewOffsetDucked, which always return the standing or ducked offset respectively.

Returns

1 Vector
The actual view offset.