Garry's Mod Wiki

Revision Difference

properties.GetHovered#512992

<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>⤶ </args>⤶ <rets>⤶ <ret name="" type="Entity">The hovered entity</ret>⤶ </rets>⤶ </function>⤶ ⤶