Garry's Mod Wiki

Player:GetViewOffset

  Vector Player:GetViewOffset()

Description

Returns the view offset of the player, which equals the difference between the player's actual position and their view when standing.

See also Player:GetViewOffsetDucked.

Returns

1 Vector
New view offset, must be local vector to player's Entity:GetPos