Garry's Mod Wiki

Revision Difference

properties.GetHovered#546612

<function name="GetHovered" parent="properties" type="libraryfunc"> <description>Returns an entity player is hovering over with his cursor.</description> <description>Returns an entity player is hovering over with their cursor.</description> <realm>Client</realm> <file line="120-L154">lua/includes/modules/properties.lua</file> <args> <arg name="pos" type="Vector">Eye position of local player, <page>Entity:EyePos</page></arg> <arg name="aimVec" type="Vector">Aim vector of local player, <page>Player:GetAimVector</page></arg> </args> <rets> <ret name="" type="Entity">The hovered entity</ret> </rets> </function>