eimEntity function?


One of the functions that i use a lot in Expression_2 is E:aimEntity().
And i can’t seem to find a similar function in LUA. At least not on the clinet_side function list nor the Lua Function List on wiki.garrysmod.com.
So,can some please tell me what function(s) there is to return the entity I’m aiming at? Or at least if there is such a function?

Thank you.

ply:GetEyeTraceNoCursor().Entity will return the entity that ply is looking at.

thank you very much