Garry's Mod Wiki

Revision Difference

properties.GetHovered#518080

<function name="GetHovered" parent="properties" type="libraryfunc"> <description>Returns an entity player is hovering over with his cursor.</description> <realm>Client</realm> <args> <arg name="pos" type="Vector">Eye position of local player, &lt;page&gt;Entity:EyePos&lt;/page&gt;</arg>⤶ <arg name="aimVec" type="Vector">Aim vector of local player, &lt;page&gt;Player:GetAimVector&lt;/page&gt;</arg>⤶ <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>