Highlighting objects wising LineTRaceByChannel

Iv found out how to make a line hit objects and tell me the object its looking at but im having a hard time finding out how to make this trigger custumb depth to turn on when its being looked at. here is example of the script.