Change light color when entering trigger

Hi :slight_smile:
I’d like to change the color of a spotlight by walking into a trigger but it doesn’t work. What did I do wrong?

var licht : Light;

function Update () {

}

function OnTriggerEnter(col : Collider) {
    if(col.tag=="li") {
      licht.Color = Color.red;
    }
}

Hi,
your this line( licht.Color = Color.red; ) should be licht.color = Color.red;
I hope this is the only problem.