Garry's Mod Wiki

Entity:GetLightingOriginEntity

  Entity Entity:GetLightingOriginEntity()

Description

Returns the entity that is being used as the light origin position for this entity.

Returns

1 Entity
The lighting entity. This will usually be NULL.