Garry's Mod Wiki

Entity:BeingLookedAtByLocalPlayer

Entity:BeingLookedAtByLocalPlayer

  boolean Entity:BeingLookedAtByLocalPlayer()

Description

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

This function is only available in entities that are based off of sandbox's base_gmodentity.

Returns

1 boolean
Is the entity being looked at by the local player and within 256 units.

Special Pages


Wikis

?

Render Time: 67ms

DB GetPage 44
Generate Html 1
SaveChanges (1) 11
Render Body 0
Render Sidebar 8