Garry's Mod Wiki

MainEyePos

  Vector MainEyePos()

Description

Returns the origin of the main view, as it was at the start of the latest main view render.

This is a good alternative to EyePos which is affected by other rendering operations, including render.RenderView.

Returns

1 Vector
Main camera position.