Entity/BeingLookedAtByLocalPlayer

From Garry's Mod
Jump to: navigation, search
 Entity:BeingLookedAtByLocalPlayer( )

Description

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

NOTE

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

NOTE

This function uses Distance instead of DistToSqr so it may not be suitable in situations where it's called often

Returns

boolean

Is the entity being looked at by the local player and within 256 units.
Personal tools
Navigation