Garry's Mod Wiki

MainEyePos

  Vector MainEyePos()

Recently Added

This was recently added in version (2025.10.02). It might only be available on the Dev Branch right now.

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.