From Garry's Mod
Returns a table with information of what the player is looking at.
The results of this function are cached every frame.
Prints the entity the player is looking at.
print( Entity( 1 ):GetEyeTrace().Entity )
"Entity [worldspawn]" in console, if you aim at world.