From Garry's Mod
Returns the entity the player is using to see from (such as the player itself, the camera, or another entity).
The entity the player is using to see from
Will print what entity the first player uses to look through.
print( Entity( 1 ):GetViewEntity() )