Is there a way to check if a player is looking at a specific entity?

Is there a way/function to check if the player is looking at a specific entity? I tried looking the wiki and google, but no luck.
Thanks in advance, Lolm4te.

You can get the player’s eye trace and check the returned result’s entity.

[lua]ply:GetEyeTrace().Entity == MyEntity[/lua]