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 =;

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