things/player/PlayerLights.cs

A component attached to a player that holds references to a PointLight and a SpotLight and can set their color. It exposes the two light objects as properties and provides SetLightColor to assign the same color to both lights.

using Sandbox;

public sealed class PlayerLights : Component
{
	[Property] public PointLight PointLight { get; set; }
	[Property] public SpotLight SpotLight { get; set; }

	public void SetLightColor( Color color )
	{
		PointLight.LightColor = color;
		SpotLight.LightColor = color;
	}
}