Garry's Mod Wiki

ProjectedTexture:SetTargetEntity

  ProjectedTexture:SetTargetEntity( Entity target = NULL )

Description

Sets the target entity for this projected texture, meaning it will only be lighting the given entity and the world.

You must call ProjectedTexture:Update after using this function for it to take effect.

Arguments

1 Entity target = NULL
The target entity, or NULL to reset.