Garry's Mod Wiki

properties.GetHovered

properties.GetHovered

  Entity properties.GetHovered( Vector pos, Vector aimVec )

Description

Returns an entity player is hovering over with his cursor.

Arguments

1 Vector pos
Eye position of local player, Entity:EyePos
2 Vector aimVec
Aim vector of local player, Player:GetAimVector

Returns

1 Entity
The hovered entity

Special Pages


Wikis

?

Render Time: 76ms

DB GetPage 49
Generate Html 4
SaveChanges (1) 13
Render Body 0
Render Sidebar 7