Garry's Mod Wiki

Player:GetViewOffset

  Vector Player:GetViewOffset()

Description

Returns the view offset of the player which equals the difference between the players actual position and their view.

See also Player:GetViewOffsetDucked.

Returns

1 Vector
New view offset, must be local vector to players Entity:GetPos