Garry's Mod Wiki

Entity:BeingLookedAtByLocalPlayer

Description

Returns true if the entity is being looked at by the local player and is within 256 units of distance.

Returns

1 boolean
Is the entity being looked at by the local player and within 256 units.
This function is only available in entities that are based off of sandbox's base_gmodentity
This function uses Distance instead of DistToSqr so it may not be suitable in situations where it's called often

Page Links


Special Pages


Wikis

?

Render Time: 34ms

DB GetPage 3
Generate Html 3
SaveChanges 14
Render Body 0
Render Sidebar 12